lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James" <>
Subject RE: Exact match syntax
Date Thu, 17 Jan 2008 19:58:25 GMT
Off the top of my head I would guess that audio_slideshow is being tokenized
into audio and slideshow.  You may have to adjust the analyzer, but it might
be easier just to redefine your field values so that the analyzer doesn't
separate them.

James Ryley

> -----Original Message-----
> From: darkling235 []
> Sent: Thursday, January 17, 2008 2:47 PM
> To:
> Subject: Exact match syntax
> Lucene has been working well for us until the last few days when we hit a
> snag.
> We're trying to build a query to search a multiple value property to see
> it contains the value of AUDIO. However there is also a different value
> that property called AUDIO_SLIDESHOW. Documents with AUDIO_SLIDESHOW but
> AUDIO should NOT get returned by this query.
> Just to make it more complicated it is possible a document has both an
> value AND an AUDIO_SLIDESHOW value for that property. In this case the
> document should be returned.
> So this property could be
> property:AUDIO                                             (RETURNED)
> property:AUDIO_SLIDESHOW                            (NOT RETURNED)
> property:AUDIO, AUDIO_SLIDESHOW                 (RETURNED)
> Can anyone think of a query syntax that will allow us to get all documents
> with AUDIO in that property but not AUDIO_SLIDESHOW?
> Is it possible to build a generic query to do this or do I need to do some
> java programming?
> Any advice would be great
> Thanks
> --
> View this message in context:
> tp14930762p14930762.html
> Sent from the Lucene - General mailing list archive at

View raw message