Date: 2005-02-15T13:32:24 Editor: HossMan Wiki: Jakarta Lucene Wiki Page: LuceneFAQ URL: http://wiki.apache.org/jakarta-lucene/LuceneFAQ
quote from Erik, lucene-users "Tue, 15 Feb 2005 15:20:01 -0500" Change Log: ------------------------------------------------------------------------------ @@ -369,8 +369,9 @@ ==== Why is it important to use the same analyzer type during indexing and search? ==== -The analyzer controls how the text is broken into terms which are then used to index the document. If you are using analyzer of one type to index and an analyzer of a different type to parse the search query, it is possible that the same word will be mapped to two different terms and this will result in missing or false hits. +The analyzer controls how the text is broken into terms which are then used to index the document. If you are using analyzer of one type to index and an analyzer of a different type to parse the search query, it is possible that the same word will be mapped to two different terms and this will result in missing or false hits. +'''NOTE:''' It's not a rule that the same analyzer be used for both indexing and searching, and there are cases where it makes sense to use different ones (ie: when dealing with Synonyms). The analyzers must be compatible though. ==== What is index optimization and when should I use it? ==== --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]