Heh, funny :) Look at the jGuru Lucene FAQ for building a custom Analyzer. Your Analyzer has to treat some of your fields differently.
Otis --- Spence Nichols <[EMAIL PROTECTED]> wrote: > Hi > > I have created an index which has documents with many fields. > > Eg Field.Keyword("AUTHOR", "Fred Bloggs") - want it indexed and > stored, not > tokenised > Field.Text("CONTENT", "Example content") > > The second field will get tokenised/analysed using my Analyser. > > When trying to search the index I build a Query object using the > QueryParser > and my analyser. The result is the query gets tokenised/analysed for > each > field. > > So if I enter a search of: Fred Bloggs > > How can I build a query where only the CONTENT field term gets > tokenised? > > (AUTHOR:Fred AUTHOR:Bloggs) (CONTENT:fred CONTENT:blogg) > > Any help appreciated > Spence > > > __________________________________________________ > Do You Yahoo!? > Everything you'll ever need on one web page > from News and Sport to Email and Music Charts > http://uk.my.yahoo.com > > -- > To unsubscribe, e-mail: > <mailto:lucene-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: > <mailto:lucene-user-help@;jakarta.apache.org> > __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com -- To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:lucene-user-help@;jakarta.apache.org>