lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Walter Underwood <wunderw...@netflix.com>
Subject Re: expressing this logic
Date Wed, 25 Apr 2007 20:37:56 GMT
Enable leading wildcards and try this:

type:changelog AND filename:*angel*

wunder

On 4/25/07 1:34 PM, "Michael Kimsal" <mgkimsal@gmail.com> wrote:

> Thanks.  I'm still no results with your suggestion though.  I also tried
> 
> type:+changelog AND ( (filename:angel) OR (filename:angel*)  OR
> (filename:*angel) )
> 
> but am getting parse errors.  :(
> 
> 
> On 4/25/07, Cody Caughlan <toolbag@gmail.com> wrote:
>> 
>> What about:
>> 
>> (type:changelog) AND (filename:angel)
>> 
>> Or if you do the 3 different type of filename queries, use parenthesis
>> to properly break them up, e..g
>> 
>> type:changelog AND (filename:... OR filename:... OR filename:...)
>> 
>> I dont know enough about how Lucene's precedence rules, but you might
>> have better luck with this kind of grouping.
>> 
>> /cody
>> 
>> On 4/25/07, Michael Kimsal <mgkimsal@gmail.com> wrote:
>>> Hello all:
>>> 
>>> I'm trying to find a record in my index where the 'type' is changelog
>> and
>>> the 'filename' has 'angel' in it.
>>> 
>>> Expressing this as
>>> type:changelog filename:+angel or filename:+angel* or filename:+*angel
>>> 
>>> throws a parse error (probably understandably)
>>> 
>>> type:changelog (filename:+angel or filename:+angel* or filename:+*angel)
>>> doesn't seem to work either.
>>> 
>>> I've tried this a number of ways and I either get a parse error or
>>> *everything* is returned - I only want
>>> records where the type is 'changelog' and the filename has 'angel' in
>> it.
>>> How would this be expressed?
>>> 
>>> 
>>> --
>>> Michael Kimsal
>>> http://webdevradio.com
>>> 
>> 
> 
> 


Mime
View raw message