lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronald Rudy <ronchal...@gmail.com>
Subject Re: Boolean expression for no terms OR matching a wildcard
Date Sun, 20 Jul 2008 12:29:04 GMT
A query solution is preferable.. but I can programmatically filter my  
results after the fact, it just seems like something that the Lucene  
team should consider adding.. I think it would only have value for  
wildcard queries, but nonetheless it would have some value I think..

-Ron


On Jul 18, 2008, at 6:24 PM, eks dev wrote:

> Analyzer that detects your condition "ALL match something", if  
> possible at all...
> e.g. "800123456 80034543534 80023423423" -> 800
>
> than you put it in ALL_MATCH field and match this condition against  
> it... if this prefix needs to be variable, you could extract all  
> matching prefixes to this fiield an make your query work like  
> "ALL_MATCH:800" and care not for the rest :) than yo would not need  
> field1 at all for these queries
>
> you were looking for something like this or you need "Query solution"?
>
>
>
> ----- Original Message ----
>> From: Chris Hostetter <hossman_lucene@fucit.org>
>> To: java-user@lucene.apache.org
>> Sent: Saturday, 19 July, 2008 12:00:39 AM
>> Subject: Re: Boolean expression for no terms OR matching a wildcard
>>
>> : Maybe this is easier ... suppose what I'm indexing is a phone  
>> number, and
>> : there are multiple phone numbers for what I'm indexing under the  
>> same field
>> : (phone) and I want the wildcard query to match only records that  
>> have either
>> : no phone numbers at all OR where ALL phone numbers are in a  
>> specific area code
>> : (e.g. 800* would match all in the 800 area code).
>>
>> i can't think of anyway to accomplish the second part of your query.
>> specificly, given the following records...
>>
>>  Doc1: field1:AAA, field1:Aaa, field1:Bb, field1:C, field2:X,  
>> field3:Y
>>  Doc2: field1:AAA, field1:Aaa, field1:Aa, field2:Z
>>
>> ...i can't think of any type of query like field1:A* which would  
>> match
>> Doc2 but not Doc1 (because there are other field1 values that do  
>> not start
>> with 'A')
>>
>>
>>
>> -Hoss
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
>
>      __________________________________________________________
> Not happy with your email address?.
> Get the one you really want - millions of new email addresses  
> available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>
> ---------------------------------------------------------------------
> 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