RE: Searching for "keyword" fields using QueryParser

2005-11-24 Thread Tim.Wright
Excellent, that's exactly what I needed. Many thanks! Cheers, Tim. -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: 24 November 2005 14:51 To: java-user@lucene.apache.org Subject: Re: Searching for "keyword" fields using QueryParser Tim, The

Re: Searching for "keyword" fields using QueryParser

2005-11-24 Thread Erik Hatcher
Tim, The trick is to use PerFieldAnalyzerWrapper with QueryParser, using StandardAnalyzer as the default, and using KeywordAnalyzer for each of the fields that should not be analyzed. KeywordAnalyzer is in the trunk of Subversion right now, not in a released version.

Searching for "keyword" fields using QueryParser

2005-11-24 Thread Tim.Wright
Hi, Our index has a large text field, and a number of "keyword" fields with things such as the publication code, article reference and so on. We're analysing using the StandardAnalyzer, which works well. Obviously the fields which are defined as Field.Keyword don't run through the analyzer. Th