Re: Not able to search on UN_TOKENIZED fields

2007-04-09 Thread Antony Bowesman
You can either use KeywordAnalyzer with your QueryParser which will correctly handle UN_TOKENIZED fields, but that will use KeywordAnalyzer for all fields. To use a field specific Analyzer you either need to use PerFieldAnalyzerWrapper and preload it with all possible fields and use that as the

Re: Not able to search on UN_TOKENIZED fields

2007-04-05 Thread Erick Erickson
See below On 4/5/07, Ryan O'Hara <[EMAIL PROTECTED]> wrote: Hey Erick, Thanks for the quick response. I need a truly exact match. What I ended up doing was using a TOKENIZED field, but altering the StandardAnalyzer's stop word list to include only the word/letter 'a'. Below is my searching

Re: Not able to search on UN_TOKENIZED fields

2007-04-05 Thread Ryan O'Hara
Hey Erick, Thanks for the quick response. I need a truly exact match. What I ended up doing was using a TOKENIZED field, but altering the StandardAnalyzer's stop word list to include only the word/letter 'a'. Below is my searching code: String[] stopWords = {"a"}; StandardA

Re: Not able to search on UN_TOKENIZED fields

2007-04-05 Thread Erick Erickson
Yes, you can search on UN_TOKENIZED fields, but they're exact, really, really exact . I'd recommend that you get a copy of Luke (google lucene luke) and examine your index to see what you actually have in your index. Also, you haven't provided us a clue what the actual query is. I'd use Query.to

Not able to search on UN_TOKENIZED fields

2007-04-05 Thread Ryan O'Hara
Hey, I was just wondering if you are supposed to be able to search on UN_TOKENIZED fields? It seems like you can from the docs, but I have been unsuccessful. I want to do exact string matching on a certain field without analyzer interference. Thanks, Ryan --