You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by yo...@apache.org on 2009/10/09 23:23:06 UTC

svn commit: r823695 - /lucene/solr/trunk/CHANGES.txt

Author: yonik
Date: Fri Oct  9 21:23:04 2009
New Revision: 823695

URL: http://svn.apache.org/viewvc?rev=823695&view=rev
Log:
doc - address tokenstream reusability and fold in previous TokenFilterFactory comment

Modified:
    lucene/solr/trunk/CHANGES.txt

Modified: lucene/solr/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/CHANGES.txt?rev=823695&r1=823694&r2=823695&view=diff
==============================================================================
--- lucene/solr/trunk/CHANGES.txt (original)
+++ lucene/solr/trunk/CHANGES.txt Fri Oct  9 21:23:04 2009
@@ -30,6 +30,13 @@
 faster for most cases.  One can revert to the previous algorithm (which has
 also been improved somewhat) by adding facet.method=enum to the request.
 
+If you use custom Tokenizer or TokenFilter components in a chain specified in
+schema.xml, they must support reusability.  If your Tokenizer or TokenFilter
+maintains state, it should implement reset().  If your TokenFilteFactory does
+not return a subclass of TokenFilter, then it should implement reset() and call
+reset() on it's input TokenStream.  TokenizerFactory implementations must
+now return a Tokenizer rather than a TokenStream.
+
 New users of Solr 1.4 will have omitTermFreqAndPositions enabled for non-text
 indexed fields by default, which avoids indexing term frequency, positions, and
 payloads, making the index smaller and faster.  If you are upgrading from an
@@ -47,11 +54,6 @@
 for your request handlers in solrconfig.xml, see the example solrconfig.xml for
 sample syntax.) 
 
-The TokenizerFactory API has changed to explicitly return a Tokenizer rather then
-a TokenStream (that may be or may not be a Tokenizer).  This change is required
-to take advantage of the Token reuse improvements in lucene 2.9.  For more 
-information, see SOLR-1377. 
-
 If spellcheck.extendedResults=true, the response format for suggestions
 has changed, see SOLR-1071.