lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chuck Williams" <ch...@manawiz.com>
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
http://issues.apache.org/bugzilla/show_bug.cgi?id=32674.

Chuck

  > -----Original Message-----
  > From: Carlos Franco Robles [mailto:carlos.franco@xeridia.com]
  > Sent: Tuesday, January 11, 2005 2:05 PM
  > To: lucene-user@jakarta.apache.org
  > 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
fields
  > and filter duplicated results like with distinct in SQL syntax.
  > Something like:
  > 
  > distinct (+string OR OtherField:(+string))
  > 
  > Thanks a lot
  > 
  > 

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message