lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Klaas <mike.kl...@gmail.com>
Subject Re: Storing Host and IP Information in Lucene
Date Tue, 11 Sep 2007 20:20:34 GMT
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 you can query docs from example.com via:
(com.example com.example.*)

If you want 'example' to be searchable as a term, then additionally  
store the host in a different, tokenized field.

-Mike

> 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 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
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/Storing-Host- 
> and-IP-Information-in-Lucene-tf4414865.html#a12607238
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message