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.
Sincerely, James Ryley http://www.FreePatentsOnline.com > -----Original Message----- > From: darkling235 [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 17, 2008 2:47 PM > To: general@lucene.apache.org > 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 if > it contains the value of AUDIO. However there is also a different value for > that property called AUDIO_SLIDESHOW. Documents with AUDIO_SLIDESHOW but not > AUDIO should NOT get returned by this query. > > > > Just to make it more complicated it is possible a document has both an AUDIO > 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: http://www.nabble.com/Exact-match-syntax- > tp14930762p14930762.html > Sent from the Lucene - General mailing list archive at Nabble.com.