Re: Excluding partial match for query result

2007-01-12 Thread Erick Erickson
Sure, see PerFieldAnalyzerWrapper. It's designed to allow different analyzers for different fields. Erick On 1/12/07, M A <[EMAIL PROTECTED]> wrote: Analyzer analyzer = new StandardAnalyzer(new String[]{}); The analyzer used in both cases, would be this one in the code, above. Does this mean

Re: Excluding partial match for query result

2007-01-12 Thread M A
Analyzer analyzer = new StandardAnalyzer(new String[]{}); The analyzer used in both cases, would be this one in the code, above. Does this mean i would have to create a new Analyzer and reindex the whole lot? Bearing in mind ofcourse that there is also a free text element also, See this become

Re: Excluding partial match for query result

2007-01-11 Thread Erick Erickson
What analyzers are you using for your queries and your indexing? StandardAnalyzer (I believe) will break "A.B" into two tokens , so your index could contain both tags. So what you really have in the index would be story1 A C E story2: A B P Q (note no '.'). searching for B.A would really searc