Re: Storing Host and IP Information in Lucene

2007-09-11 Thread Mike Klaas
On 10-Sep-07, at 8:37 PM, AnkitSinghal wrote: But i think the query like host:example* will not work in this case Actually it was typo in my question. I want to search for above type of query only. Hosts are best stored in reverse domain format: xyz.example.com -> com.example.xyz Then yo

Re: Storing Host and IP Information in Lucene

2007-09-11 Thread Erick Erickson
What kind of analyzers are you using for this? Might it work for you to put it in a special field and analyze and search with, say, WhitespaceAnalyzer (or an analyzer that lowercases and breaks on whitespace)? PerFIeldAnalyzerWrapper is your friend. Best Erick On 9/10/07, AnkitSinghal <[EMAIL PR

Re: Storing Host and IP Information in Lucene

2007-09-10 Thread AnkitSinghal
But i think the query like host:example* will not work in this case Actually it was typo in my question. I want to search for above type of query only. Ankit Daniel Noll-3 wrote: > > On Monday 10 September 2007 23:53:06 AnkitSinghal wrote: >> And if i make the field as UNTOKENIZED i cannot se

Re: Storing Host and IP Information in Lucene

2007-09-10 Thread Daniel Noll
On Monday 10 September 2007 23:53:06 AnkitSinghal wrote: > And if i make the field as UNTOKENIZED i cannot search for queries like > host:xyz.* . I'm not sure why that wouldn't work. If the stored token is xyz.example.com, then xyz.* will certainly match it. Daniel ---