Skip to content

Commit f9829e3

Browse files
author
vzhabiuk
committed
Merge branch 'json-api' of github.com:vzhabiuk/sensei into json-api
Conflicts: sensei-core/src/main/java/com/sensei/facet/attribute/PredicateFacetFilter.java
2 parents 8c9bd12 + 559dbfa commit f9829e3

File tree

12 files changed

+77
-71
lines changed

12 files changed

+77
-71
lines changed

bin/start-sensei-node.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ HEAP_OPTS="-Xmx1g -Xms1g -XX:NewSize=256m"
3636
# HEAP_OPTS="-Xmx1024m -Xms512m -XX:NewSize=128m"
3737
# HEAP_OPTS="-Xmx512m -Xms256m -XX:NewSize=64m"
3838
# GC_OPTS="-verbosegc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:+UseConcMarkSweepGC -XX:+UseParNewGC"
39-
# JAVA_DEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y"
39+
JAVA_DEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=n"
4040
#GC_OPTS="-XX:+UseConcMarkSweepGC -XX:+UseParNewGC"
4141
JAVA_OPTS="-server -d64"
4242
JMX_OPTS="-Djava.rmi.server.hostname=$IP -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=18889 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<target name="dist" depends="init" description="--> build .jar and sources into dist">
1212
<exec executable="mvn">
13-
<arg line="-Dmaven.test.skip=true package"/>
13+
<arg line="--no-snapshot-updates -Dmaven.test.skip=true package"/>
1414
</exec>
1515
</target>
1616

example/cars/conf/schema.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
default delimiter is ","
3030
-->
3131
<column name="tags" type="string" multi="true" delimiter=","/>
32+
<column name="object_properties" type="string" multi="true" delimiter=","/>
3233
<!-- attributes: indexed,store,termvector are only used when type is text -->
3334
<column name="contents" type="text" index="ANALYZED" store="YES" termvector="YES" />
3435
</table>
@@ -80,7 +81,12 @@
8081
</params>
8182
</facet>
8283
<facet name="tags" type="multi" />
83-
84+
<facet name="object_properties" type="attribute" column="object_properties">
85+
<params>
86+
<param name="numFacetsPerKey" value="5" />
87+
<param name="separator" value="=" />
88+
</params>
89+
</facet>
8490
<!-- example of a custom facet, defined in custom-facets.xml -->
8591
<!--
8692
a bean with name "foobar" must be defined

example/cars/conf/sensei.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ sensei.index.freshness = 5
3636
# gateway parameters
3737

3838
sensei.gateway.class=com.sensei.indexing.api.gateway.file.LinedFileDataProviderBuilder
39-
sensei.gateway.file.path = example/cars/data/cars.json
39+
sensei.gateway.file.path = example/cars/data/test_data.json
4040
# index manager parameters
4141

4242
sensei.index.manager.default.maxpartition.id = 1

example/cars/webapp/sensei-js

Lines changed: 0 additions & 1 deletion
This file was deleted.

example/tweets/webapp/sensei-js

Lines changed: 0 additions & 1 deletion
This file was deleted.

sensei-core/.classpath

Lines changed: 48 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -6,66 +6,62 @@
66
<classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/>
77
<classpathentry kind="output" path="target/classes"/>
88
<classpathentry kind="var" path="M2_REPO/javax/jms/jms/1.1/jms-1.1.jar"/>
9-
<classpathentry kind="var" path="M2_REPO/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar"/>
9+
<classpathentry kind="var" path="M2_REPO/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar" sourcepath="M2_REPO/javax/servlet/servlet-api/2.5/servlet-api-2.5-sources.jar"/>
1010
<classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.7/antlr-2.7.7.jar"/>
11-
<classpathentry kind="var" path="M2_REPO/org/antlr/antlr/3.4/antlr-3.4.jar"/>
12-
<classpathentry kind="var" path="M2_REPO/org/antlr/antlr-runtime/3.4/antlr-runtime-3.4.jar"/>
13-
<classpathentry kind="var" path="M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0.jar"/>
11+
<classpathentry kind="var" path="M2_REPO/org/antlr/antlr/3.4/antlr-3.4.jar" sourcepath="M2_REPO/org/antlr/antlr/3.4/antlr-3.4-sources.jar"/>
12+
<classpathentry kind="var" path="M2_REPO/org/antlr/antlr-runtime/3.4/antlr-runtime-3.4.jar" sourcepath="M2_REPO/org/antlr/antlr-runtime/3.4/antlr-runtime-3.4-sources.jar"/>
13+
<classpathentry kind="var" path="M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0.jar" sourcepath="M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0-sources.jar"/>
1414
<classpathentry kind="var" path="M2_REPO/com/browseengine/bobo/bobo-browse/3.0.0-SNAPSHOT/bobo-browse-3.0.0-SNAPSHOT.jar"/>
15-
<classpathentry kind="var" path="M2_REPO/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar"/>
15+
<classpathentry kind="var" path="M2_REPO/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar" sourcepath="M2_REPO/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0-sources.jar"/>
1616
<classpathentry kind="var" path="M2_REPO/commons-beanutils/commons-beanutils-core/1.8.0/commons-beanutils-core-1.8.0.jar"/>
17-
<classpathentry kind="var" path="M2_REPO/commons-cli/commons-cli/1.2/commons-cli-1.2.jar"/>
18-
<classpathentry kind="var" path="M2_REPO/commons-codec/commons-codec/1.4/commons-codec-1.4.jar"/>
19-
<classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar"/>
20-
<classpathentry kind="var" path="M2_REPO/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar"/>
21-
<classpathentry kind="var" path="M2_REPO/commons-digester/commons-digester/1.8/commons-digester-1.8.jar"/>
22-
<classpathentry kind="var" path="M2_REPO/commons-el/commons-el/1.0/commons-el-1.0.jar"/>
23-
<classpathentry kind="var" path="M2_REPO/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar"/>
24-
<classpathentry kind="var" path="M2_REPO/commons-io/commons-io/2.0.1/commons-io-2.0.1.jar"/>
25-
<classpathentry kind="var" path="M2_REPO/commons-lang/commons-lang/2.5/commons-lang-2.5.jar"/>
26-
<classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"/>
27-
<classpathentry kind="var" path="M2_REPO/org/apache/commons/commons-math/2.1/commons-math-2.1.jar"/>
28-
<classpathentry kind="var" path="M2_REPO/commons-net/commons-net/1.4.1/commons-net-1.4.1.jar"/>
17+
<classpathentry kind="var" path="M2_REPO/commons-cli/commons-cli/1.2/commons-cli-1.2.jar" sourcepath="M2_REPO/commons-cli/commons-cli/1.2/commons-cli-1.2-sources.jar"/>
18+
<classpathentry kind="var" path="M2_REPO/commons-codec/commons-codec/1.4/commons-codec-1.4.jar" sourcepath="M2_REPO/commons-codec/commons-codec/1.4/commons-codec-1.4-sources.jar"/>
19+
<classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar" sourcepath="M2_REPO/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1-sources.jar"/>
20+
<classpathentry kind="var" path="M2_REPO/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar" sourcepath="M2_REPO/commons-configuration/commons-configuration/1.6/commons-configuration-1.6-sources.jar"/>
21+
<classpathentry kind="var" path="M2_REPO/commons-digester/commons-digester/1.8/commons-digester-1.8.jar" sourcepath="M2_REPO/commons-digester/commons-digester/1.8/commons-digester-1.8-sources.jar"/>
22+
<classpathentry kind="var" path="M2_REPO/commons-el/commons-el/1.0/commons-el-1.0.jar" sourcepath="M2_REPO/commons-el/commons-el/1.0/commons-el-1.0-sources.jar"/>
23+
<classpathentry kind="var" path="M2_REPO/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar" sourcepath="M2_REPO/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1-sources.jar"/>
24+
<classpathentry kind="var" path="M2_REPO/commons-io/commons-io/2.0.1/commons-io-2.0.1.jar" sourcepath="M2_REPO/commons-io/commons-io/2.0.1/commons-io-2.0.1-sources.jar"/>
25+
<classpathentry kind="var" path="M2_REPO/commons-lang/commons-lang/2.5/commons-lang-2.5.jar" sourcepath="M2_REPO/commons-lang/commons-lang/2.5/commons-lang-2.5-sources.jar"/>
26+
<classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar" sourcepath="M2_REPO/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1-sources.jar"/>
27+
<classpathentry kind="var" path="M2_REPO/org/apache/commons/commons-math/2.1/commons-math-2.1.jar" sourcepath="M2_REPO/org/apache/commons/commons-math/2.1/commons-math-2.1-sources.jar"/>
28+
<classpathentry kind="var" path="M2_REPO/commons-net/commons-net/1.4.1/commons-net-1.4.1.jar" sourcepath="M2_REPO/commons-net/commons-net/1.4.1/commons-net-1.4.1-sources.jar"/>
2929
<classpathentry kind="var" path="M2_REPO/org/eclipse/jdt/core/3.1.1/core-3.1.1.jar"/>
3030
<classpathentry kind="var" path="M2_REPO/fastutil/fastutil/5.0.5/fastutil-5.0.5.jar"/>
3131
<classpathentry kind="var" path="M2_REPO/org/apache/hadoop/hadoop-core/0.20.204.0/hadoop-core-0.20.204.0.jar"/>
3232
<classpathentry kind="var" path="M2_REPO/hsqldb/hsqldb/1.8.0.10/hsqldb-1.8.0.10.jar"/>
33-
<classpathentry kind="var" path="M2_REPO/org/apache/httpcomponents/httpclient/4.1/httpclient-4.1.jar"/>
34-
<classpathentry kind="var" path="M2_REPO/org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.jar"/>
35-
<classpathentry kind="var" path="M2_REPO/net/java/dev/jets3t/jets3t/0.7.1/jets3t-0.7.1.jar"/>
36-
<classpathentry kind="var" path="M2_REPO/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.jar"/>
37-
<classpathentry kind="var" path="M2_REPO/org/mortbay/jetty/jetty-util/6.1.26/jetty-util-6.1.26.jar"/>
38-
<classpathentry kind="var" path="M2_REPO/jline/jline/0.9.94/jline-0.9.94.jar"/>
39-
<classpathentry kind="var" path="M2_REPO/org/jolokia/jolokia-core/0.90/jolokia-core-0.90.jar"/>
40-
<classpathentry kind="var" path="M2_REPO/org/json/json/20080701/json-20080701.jar"/>
41-
<classpathentry kind="var" path="M2_REPO/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.jar"/>
42-
<classpathentry kind="var" path="M2_REPO/junit/junit/4.5/junit-4.5.jar"/>
43-
<classpathentry kind="var" path="M2_REPO/com/linkedin/kamikaze/kamikaze/3.0.6/kamikaze-3.0.6.jar" sourcepath="M2_REPO/com/linkedin/kamikaze/kamikaze/3.0.6/kamikaze-3.0.6-sources.jar">
44-
<attributes>
45-
<attribute value="jar:file:/Users/john/.m2/repository/com/linkedin/kamikaze/kamikaze/3.0.6/kamikaze-3.0.6-javadoc.jar!/" name="javadoc_location"/>
46-
</attributes>
47-
</classpathentry>
33+
<classpathentry kind="var" path="M2_REPO/org/apache/httpcomponents/httpclient/4.1/httpclient-4.1.jar" sourcepath="M2_REPO/org/apache/httpcomponents/httpclient/4.1/httpclient-4.1-sources.jar"/>
34+
<classpathentry kind="var" path="M2_REPO/org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.jar" sourcepath="M2_REPO/org/apache/httpcomponents/httpcore/4.1/httpcore-4.1-sources.jar"/>
35+
<classpathentry kind="var" path="M2_REPO/net/java/dev/jets3t/jets3t/0.7.1/jets3t-0.7.1.jar" sourcepath="M2_REPO/net/java/dev/jets3t/jets3t/0.7.1/jets3t-0.7.1-sources.jar"/>
36+
<classpathentry kind="var" path="M2_REPO/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.jar" sourcepath="M2_REPO/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26-sources.jar"/>
37+
<classpathentry kind="var" path="M2_REPO/org/mortbay/jetty/jetty-util/6.1.26/jetty-util-6.1.26.jar" sourcepath="M2_REPO/org/mortbay/jetty/jetty-util/6.1.26/jetty-util-6.1.26-sources.jar"/>
38+
<classpathentry kind="var" path="M2_REPO/jline/jline/0.9.94/jline-0.9.94.jar" sourcepath="M2_REPO/jline/jline/0.9.94/jline-0.9.94-sources.jar"/>
39+
<classpathentry kind="var" path="M2_REPO/org/jolokia/jolokia-core/0.90/jolokia-core-0.90.jar" sourcepath="M2_REPO/org/jolokia/jolokia-core/0.90/jolokia-core-0.90-sources.jar"/>
40+
<classpathentry kind="var" path="M2_REPO/org/json/json/20080701/json-20080701.jar" sourcepath="M2_REPO/org/json/json/20080701/json-20080701-sources.jar"/>
41+
<classpathentry kind="var" path="M2_REPO/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.jar" sourcepath="M2_REPO/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1-sources.jar"/>
42+
<classpathentry kind="var" path="M2_REPO/junit/junit/4.5/junit-4.5.jar" sourcepath="M2_REPO/junit/junit/4.5/junit-4.5-sources.jar"/>
43+
<classpathentry kind="var" path="M2_REPO/com/linkedin/kamikaze/kamikaze/3.0.6/kamikaze-3.0.6.jar" sourcepath="M2_REPO/com/linkedin/kamikaze/kamikaze/3.0.6/kamikaze-3.0.6-sources.jar"/>
4844
<classpathentry kind="var" path="M2_REPO/net/sf/kosmosfs/kfs/0.3/kfs-0.3.jar"/>
49-
<classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14.jar"/>
50-
<classpathentry kind="var" path="M2_REPO/org/apache/lucene/lucene-core/3.5.0/lucene-core-3.5.0.jar"/>
51-
<classpathentry kind="var" path="M2_REPO/com/yammer/metrics/metrics-core/2.0.0-BETA18-SNAPSHOT/metrics-core-2.0.0-BETA18-SNAPSHOT.jar"/>
52-
<classpathentry kind="var" path="M2_REPO/org/jboss/netty/netty/3.2.3.Final/netty-3.2.3.Final.jar"/>
53-
<classpathentry kind="var" path="M2_REPO/com/linkedin/norbert_2.8.1/0.6.12/norbert_2.8.1-0.6.12.jar"/>
54-
<classpathentry kind="var" path="M2_REPO/oro/oro/2.0.8/oro-2.0.8.jar"/>
55-
<classpathentry kind="var" path="M2_REPO/com/google/protobuf/protobuf-java/2.4.0a/protobuf-java-2.4.0a.jar"/>
56-
<classpathentry kind="var" path="M2_REPO/org/scala-lang/scala-library/2.8.1/scala-library-2.8.1.jar"/>
57-
<classpathentry kind="var" path="M2_REPO/org/mortbay/jetty/servlet-api/2.5-20081211/servlet-api-2.5-20081211.jar"/>
58-
<classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar"/>
59-
<classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar"/>
60-
<classpathentry kind="var" path="M2_REPO/org/springframework/spring/2.5.6/spring-2.5.6.jar"/>
61-
<classpathentry kind="var" path="M2_REPO/org/springframework/spring-beans/2.5.6/spring-beans-2.5.6.jar"/>
62-
<classpathentry kind="var" path="M2_REPO/org/springframework/spring-context/2.5.6/spring-context-2.5.6.jar"/>
63-
<classpathentry kind="var" path="M2_REPO/org/springframework/spring-core/2.5.6/spring-core-2.5.6.jar"/>
64-
<classpathentry kind="var" path="M2_REPO/org/antlr/ST4/4.0.4/ST4-4.0.4.jar"/>
65-
<classpathentry kind="var" path="M2_REPO/org/antlr/stringtemplate/3.2.1/stringtemplate-3.2.1.jar"/>
45+
<classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14.jar" sourcepath="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14-sources.jar"/>
46+
<classpathentry kind="var" path="M2_REPO/org/apache/lucene/lucene-core/3.5.0/lucene-core-3.5.0.jar" sourcepath="M2_REPO/org/apache/lucene/lucene-core/3.5.0/lucene-core-3.5.0-sources.jar"/>
47+
<classpathentry kind="var" path="M2_REPO/com/yammer/metrics/metrics-core/2.0.0-BETA18-SNAPSHOT/metrics-core-2.0.0-BETA18-SNAPSHOT.jar" sourcepath="M2_REPO/com/yammer/metrics/metrics-core/2.0.0-BETA18-SNAPSHOT/metrics-core-2.0.0-BETA18-SNAPSHOT-sources.jar"/>
48+
<classpathentry kind="var" path="M2_REPO/org/jboss/netty/netty/3.2.3.Final/netty-3.2.3.Final.jar" sourcepath="M2_REPO/org/jboss/netty/netty/3.2.3.Final/netty-3.2.3.Final-sources.jar"/>
49+
<classpathentry kind="var" path="M2_REPO/com/linkedin/norbert_2.8.1/0.6.12/norbert_2.8.1-0.6.12.jar" sourcepath="M2_REPO/com/linkedin/norbert_2.8.1/0.6.12/norbert_2.8.1-0.6.12-sources.jar"/>
50+
<classpathentry kind="var" path="M2_REPO/oro/oro/2.0.8/oro-2.0.8.jar" sourcepath="M2_REPO/oro/oro/2.0.8/oro-2.0.8-sources.jar"/>
51+
<classpathentry kind="var" path="M2_REPO/com/google/protobuf/protobuf-java/2.4.0a/protobuf-java-2.4.0a.jar" sourcepath="M2_REPO/com/google/protobuf/protobuf-java/2.4.0a/protobuf-java-2.4.0a-sources.jar"/>
52+
<classpathentry kind="var" path="M2_REPO/org/scala-lang/scala-library/2.8.1/scala-library-2.8.1.jar" sourcepath="M2_REPO/org/scala-lang/scala-library/2.8.1/scala-library-2.8.1-sources.jar"/>
53+
<classpathentry kind="var" path="M2_REPO/org/mortbay/jetty/servlet-api/2.5-20081211/servlet-api-2.5-20081211.jar" sourcepath="M2_REPO/org/mortbay/jetty/servlet-api/2.5-20081211/servlet-api-2.5-20081211-sources.jar"/>
54+
<classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar" sourcepath="M2_REPO/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1-sources.jar"/>
55+
<classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar" sourcepath="M2_REPO/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1-sources.jar"/>
56+
<classpathentry kind="var" path="M2_REPO/org/springframework/spring/2.5.6/spring-2.5.6.jar" sourcepath="M2_REPO/org/springframework/spring/2.5.6/spring-2.5.6-sources.jar"/>
57+
<classpathentry kind="var" path="M2_REPO/org/springframework/spring-beans/2.5.6/spring-beans-2.5.6.jar" sourcepath="M2_REPO/org/springframework/spring-beans/2.5.6/spring-beans-2.5.6-sources.jar"/>
58+
<classpathentry kind="var" path="M2_REPO/org/springframework/spring-context/2.5.6/spring-context-2.5.6.jar" sourcepath="M2_REPO/org/springframework/spring-context/2.5.6/spring-context-2.5.6-sources.jar"/>
59+
<classpathentry kind="var" path="M2_REPO/org/springframework/spring-core/2.5.6/spring-core-2.5.6.jar" sourcepath="M2_REPO/org/springframework/spring-core/2.5.6/spring-core-2.5.6-sources.jar"/>
60+
<classpathentry kind="var" path="M2_REPO/org/antlr/ST4/4.0.4/ST4-4.0.4.jar" sourcepath="M2_REPO/org/antlr/ST4/4.0.4/ST4-4.0.4-sources.jar"/>
61+
<classpathentry kind="var" path="M2_REPO/org/antlr/stringtemplate/3.2.1/stringtemplate-3.2.1.jar" sourcepath="M2_REPO/org/antlr/stringtemplate/3.2.1/stringtemplate-3.2.1-sources.jar"/>
6662
<classpathentry kind="var" path="M2_REPO/xmlenc/xmlenc/0.52/xmlenc-0.52.jar"/>
67-
<classpathentry kind="var" path="M2_REPO/com/linkedin/zoie/zoie-core/3.1.0-SNAPSHOT/zoie-core-3.1.0-SNAPSHOT.jar"/>
68-
<classpathentry kind="var" path="M2_REPO/com/linkedin/zoie/zoie-jms/3.1.0-SNAPSHOT/zoie-jms-3.1.0-SNAPSHOT.jar"/>
69-
<classpathentry kind="var" path="M2_REPO/org/apache/zookeeper/zookeeper/3.3.3/zookeeper-3.3.3.jar"/>
63+
<classpathentry kind="var" path="M2_REPO/com/linkedin/zoie/zoie-core/3.1.0-SNAPSHOT/zoie-core-3.1.0-SNAPSHOT.jar" sourcepath="M2_REPO/com/linkedin/zoie/zoie-core/3.1.0-SNAPSHOT/zoie-core-3.1.0-SNAPSHOT-sources.jar"/>
64+
<classpathentry kind="var" path="M2_REPO/com/linkedin/zoie/zoie-jms/3.1.0-SNAPSHOT/zoie-jms-3.1.0-SNAPSHOT.jar" sourcepath="M2_REPO/com/linkedin/zoie/zoie-jms/3.1.0-SNAPSHOT/zoie-jms-3.1.0-SNAPSHOT-sources.jar"/>
65+
<classpathentry kind="var" path="M2_REPO/org/apache/zookeeper/zookeeper/3.3.3/zookeeper-3.3.3.jar" sourcepath="M2_REPO/org/apache/zookeeper/zookeeper/3.3.3/zookeeper-3.3.3-sources.jar"/>
7066
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
7167
</classpath>

sensei-core/src/main/java/com/sensei/facet/attribute/AttributesFacetHandler.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import java.io.IOException;
44
import java.util.Map;
5-
import java.util.Properties;
65
import java.util.Set;
76

87
import org.apache.lucene.index.Term;
@@ -65,14 +64,7 @@ public RandomAccessFilter buildFilter(final BrowseSelection browseSelection) thr
6564
return new RandomAccessNotFilter(new PredicateFacetFilter(new SimpleDataCacheBuilder(getName()), new RangePredicate(notValues, values, operation, getSeparator(browseSelection))));
6665
} else return new PredicateFacetFilter(new SimpleDataCacheBuilder(getName()), new RangePredicate(values, notValues, operation, getSeparator(browseSelection)));
6766
}
68-
@Override
69-
public RandomAccessFilter buildRandomAccessAndFilter(String[] vals, Properties prop) throws IOException {
70-
throw new UnsupportedOperationException();
71-
}
72-
@Override
73-
public RandomAccessFilter buildRandomAccessOrFilter(String[] vals, Properties prop, boolean isNot) throws IOException {
74-
throw new UnsupportedOperationException();
75-
}
67+
7668
@Override
7769
public FacetCountCollectorSource getFacetCountCollectorSource(final BrowseSelection browseSelection, final FacetSpec ospec){
7870
return new FacetCountCollectorSource(){

sensei-core/src/main/java/com/sensei/facet/attribute/PredicateFacetFilter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public RandomAccessDocIdSet getRandomAccessDocIdSet(BoboIndexReader reader) thro
3838
endDocIdTemp = facetDataCache.maxIDs[i];
3939
}
4040
}
41-
}
41+
}
42+
4243
final int startDocId = startDocIdTemp;
4344
final int endDocId = endDocIdTemp;
4445

sensei-core/src/main/java/com/sensei/facet/attribute/Range.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,9 @@ public static Range getRange(MultiValueFacetDataCache cache, String val, char se
3131
}
3232
return new Range(start, end);
3333
}
34+
@Override
35+
public String toString() {
36+
return "[start=" + start + ", end=" + end + "]";
37+
}
38+
3439
}

0 commit comments

Comments
 (0)