lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chuck Williams" <>
Subject RE: SQL Distinct sintax in Lucen
Date Tue, 11 Jan 2005 22:41:02 GMT
If I understand what you are trying to do, you don't have a problem.
You can OR to your heart's content and Lucene will properly create the
union of the results.  I.e., there will be no duplicates.

There is built-in support for this kind of thing.  See
MultiFieldQueryParser, and for better results, consider


  > -----Original Message-----
  > From: Carlos Franco Robles []
  > Sent: Tuesday, January 11, 2005 2:05 PM
  > To:
  > Subject: SQL Distinct sintax in Lucen
  > Hi all.
  > I'm starting to use lucene and I wonder if it is possible to make a
  > query syntax to ask for one string which can be in two different
  > and filter duplicated results like with distinct in SQL syntax.
  > Something like:
  > distinct (+string OR OtherField:(+string))
  > Thanks a lot

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message