From d8027f2de0adc19c5c33e4cc722d02058d9c2fd7 Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Mon, 3 Aug 2009 21:09:05 +0000 Subject: [PATCH] SOLR-1291 SOLR-1322 SOLR-1325 SOLR-1328 : more trie integration git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@800565 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 8 +- example/solr/conf/schema.xml | 124 ++++--- .../solr/request/BinaryResponseWriter.java | 5 + .../org/apache/solr/request/SimpleFacets.java | 39 ++- .../org/apache/solr/schema/DateField.java | 23 +- .../org/apache/solr/schema/FieldType.java | 14 +- .../org/apache/solr/schema/TrieField.java | 308 ++++++++++++++++-- .../org/apache/solr/search/QueryParsing.java | 12 +- .../apache/solr/search/SolrQueryParser.java | 5 +- .../solr/search/function/LongFieldSource.java | 14 +- .../solr/util/AbstractSolrTestCase.java | 3 +- .../solr/client/solrj/SolrExampleTests.java | 20 +- .../apache/solr/search/TestQueryTypes.java | 59 +++- .../apache/solr/search/TestRangeQuery.java | 2 + src/test/test-files/solr/conf/schema-trie.xml | 12 +- src/test/test-files/solr/conf/schema11.xml | 24 +- 16 files changed, 518 insertions(+), 154 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index c8eff2ed87c..e16ed29a330 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -180,10 +180,10 @@ New Features and lucene query parser (the latter existed as an undocumented feature in 1.3) (yonik) -40. SOLR-940: Add support for Lucene's Trie Range Queries by providing new FieldTypes in schema for int, float, long, - double and date. Range searches and term queries on such fields will automatically use the corresponding trie - range filter in Lucene contrib-queries and can be dramatically faster than normal range queries. - (Uwe Schindler, shalin) +40. SOLR-940: Add support for Lucene's Trie Range Queries by providing new FieldTypes in + schema for int, float, long, double and date. Single-valued Trie based + fields with a precisionStep will index multiple precisions and enable + faster range queries. (Uwe Schindler, yonik, shalin) 41. SOLR-1038: Enhance CommonsHttpSolrServer to add docs in batch using an iterator API (Noble Paul via shalin) diff --git a/example/solr/conf/schema.xml b/example/solr/conf/schema.xml index f0518f3d383..a75b2ecdb7f 100755 --- a/example/solr/conf/schema.xml +++ b/example/solr/conf/schema.xml @@ -63,6 +63,7 @@ + + + + + - - - - - + - - - - - + Note: precisionStep is disabled for multiValued fields. + Note: faceting does not currently work for these fields. + --> + + + + - + + + + + + + + + + + + + - - - - - - - - - + These types should only be used for back compatibility with existing + indexes, or if "sortMissingLast" funcitonallity is needed. Use Trie based fields instead. + --> + + + + - + @@ -389,17 +394,6 @@ - - - - - - - - - - - - + - + - - + + - + + + - +