Re: Urgent : Specific string query search

2006-11-16 Thread Chris Hostetter
: As far as I know, WhiteSpaceAnalyzer does support the field:text format. Try More specificaly, the bit of syntax field:value ...or more generally field:"some longer value" is parsed by QueryParser regardless of what Analyzer you use. QP is what extracts the field name and the colon, and then

Re: Urgent : Specific string query search

2006-11-16 Thread Erick Erickson
First, I'd ask why you need to search on punctuation. This often leads you into an overly-complex place. My first suggestion is that you re-think whether that's desirable. If it's not, just use different analyzer at index and search time. If it is desirable, then you probably need to make your ow

Urgent : Specific string query search

2006-11-16 Thread Krishnendra Nandi
Hi all, I have a specific string query like "Jakarta:" How do i get that? I am using standardAnalyzer and it seems as if it is stripping ":" and it is simply searching for "Jakarta". I have used WhiteSpaceAnalyzer also and its working fine for ":" but I think it has some other limitations. The

Re: Specific string query search

2006-11-14 Thread Erick Erickson
Well, if none of the regular analyzers meet your needs, you can always roll your own. There is an example of a SynonymAnanlyzer in Lucene In Action that you can use as a model. It's not very difficult (although a bit arcane). You're right, WhitespaceAnalyzer doesn't respect case. But it should wo

Specific string query search

2006-11-14 Thread Gaurav Kalra
Hi all, I have a specific string query like "Jakarta:" How do i get that? I am using standardAnalyzer and it seems as if it is stripping ":" and it is simply searching for "Jakarta". I have used WhiteSpaceAnalyzer also and its working fine for ":" but I think it has some other limitations. The