lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy <>
Subject How to search multiple fields using multiple search terms
Date Thu, 15 Apr 2010 22:34:46 GMT

Hi, I am trying to use the MultiFieldQueryParser to search "title" and "desc" fields.  However
the Lucene API appears to only let me provide a single search term.  Is it possible to use
multiple search terms (one for each field)?


For example, the SQL equivalent would be:

select *
from lucene
where title = 'abc'
and desc = '123'

Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message