Thanks, I'll try that now, I'm assuming I need to add the position increment and offset attributes?
On Wed, Jul 20, 2011 at 3:44 PM, Chris Hostetter <hossman_luc...@fucit.org> wrote: > > When the QueryParser gives hunks of text to an analyzer, and that analyzer > produces multiple terms, the query parser has to decide how to build a > query out of it. > > if the terms have identicle position information, then it always builds an > "OR" query (this is the typical synonym situation). If the terms have > differing positions, then the behavior is driven by the > autoGeneratePhraseQueries attribute of the FieldType -- the default value > of this depends on the version attribute of your top level <schema/> tag. > > > : I have a query which starts out with something like name:"john", I > : need to expand this to something like name:("john" "johnny"). I've > : implemented a custom tokenzier which gets close, but isn't quite right > : it outputs name:"john johnny". Is there a simple example of doing > : what I'm attempting? > : > > -Hoss >