diff --git a/.classpath b/.classpath index 528de5655..d9f48fb6a 100644 --- a/.classpath +++ b/.classpath @@ -1,7 +1,7 @@ - + diff --git a/.project b/.project index 725aaa948..005ef8e1e 100644 --- a/.project +++ b/.project @@ -3,6 +3,7 @@ montysolr-next + solr-next diff --git a/build.xml b/build.xml index c94240e71..e60b94bb3 100644 --- a/build.xml +++ b/build.xml @@ -130,12 +130,14 @@ - - - + + + + - + + diff --git a/contrib/adsabs/src/test/org/adsabs/TestAdsAllFields.java b/contrib/adsabs/src/test/org/adsabs/TestAdsAllFields.java index 9b3837298..b8f28bade 100644 --- a/contrib/adsabs/src/test/org/adsabs/TestAdsAllFields.java +++ b/contrib/adsabs/src/test/org/adsabs/TestAdsAllFields.java @@ -195,7 +195,7 @@ public void test() throws Exception { ", \"alternate_title\": \"This is of the alternate\"" + ", \"abstract\": \"all no-sky survey q'i quotient\"" + - ", \"keyword\": [\"Classical statistical mechanics\"]" + + ", \"keyword\": [\"Classical statistical mechanics\", \"foo bar\"]" + ", \"keyword_norm\": [\"angular momentum\", \"89.20.Hh\"]" + ", \"keyword_schema\": [\"ADS\", \"PACS Codes\"]" + ", \"keyword_facet\": [\"angular momentum kw\"]" + @@ -504,6 +504,10 @@ public void test() throws Exception { "//*[@numFound='1']", "//doc/int[@name='recid'][.='100']" ); + assertQ(req("q", "keyword:\"foo bar\""), + "//*[@numFound='1']", + "//doc/int[@name='recid'][.='100']" + ); assertQ(req("q", "keyword:\"Classical Statistical Mechanics\""), // should be case-insensitive "//*[@numFound='1']", "//doc/int[@name='recid'][.='100']" @@ -520,7 +524,7 @@ public void test() throws Exception { ); assertQ(req("q", "keyword_norm:classical"), "//*[@numFound='0']"); // should not contain keywords - assertQ(req("q", "keyword:89.20.Hh"), "//*[@numFound='1']"); // should contain keywords_norm + assertQ(req("q", "keyword:89.20.Hh"), "//*[@numFound='0']"); // should not contain keywords_norm /* diff --git a/contrib/examples/adsabs/solr/collection1/conf/schema.xml b/contrib/examples/adsabs/solr/collection1/conf/schema.xml index 4f38a612e..09dd9de31 100644 --- a/contrib/examples/adsabs/solr/collection1/conf/schema.xml +++ b/contrib/examples/adsabs/solr/collection1/conf/schema.xml @@ -451,10 +451,12 @@ + words="text.kill_sens" enablePositionIncrements="false" + luceneMatchVersion="4.3"/> + words="text.kill" enablePositionIncrements="false" + luceneMatchVersion="4.3"/> @@ -537,10 +539,12 @@ + words="text.kill_sens" enablePositionIncrements="false" + luceneMatchVersion="4.3"/> + words="text.kill" enablePositionIncrements="false" + luceneMatchVersion="4.3"/> @@ -609,10 +613,12 @@ + words="text.kill_sens" enablePositionIncrements="false" + luceneMatchVersion="4.3"/> + words="text.kill" enablePositionIncrements="false" + luceneMatchVersion="4.3"/> @@ -679,6 +685,8 @@ + @@ -773,6 +781,8 @@ + @@ -1050,6 +1060,8 @@ + @@ -1079,9 +1091,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/contrib/examples/adsabs/solr/collection1/conf/solrconfig.xml b/contrib/examples/adsabs/solr/collection1/conf/solrconfig.xml index 25419e330..cb7d849ae 100644 --- a/contrib/examples/adsabs/solr/collection1/conf/solrconfig.xml +++ b/contrib/examples/adsabs/solr/collection1/conf/solrconfig.xml @@ -1,70 +1,11 @@ - - - - - - - - LUCENE_40 - - - - - - - @@ -77,18 +18,6 @@ - - - - - - + + + + + + 8 + - + false - - + Lucene will flush based on whichever limit is hit first. + The default is 100 MB. --> + 100 + 5000 - - + false + - ${montysolr.maxCommitsToKeep:1} + ${montysolr.maxCommitsToKeep:1} - + 0 - @@ -275,10 +192,11 @@ To aid in advanced debugging, Lucene provides an "InfoStream" of detailed information when indexing. - Setting The value to true will instruct the underlying Lucene - IndexWriter to write its debugging info the specified file + Setting the value to true will instruct the underlying Lucene + IndexWriter to write its info stream to solr's log. By default, + this is enabled here, and controlled through log4j.properties. --> - + true @@ -292,18 +210,22 @@ For more details see http://wiki.apache.org/solr/SolrJmx --> - - - - + + + + ${solr.ulog.dir:} + +