11 apr 2007 kl. 11.19 skrev Mohammad Norouzi:

is it possible (or a trickery way) to search with a given query in which we
can set an equality for two fields
for example:

Document:
field1             field2                field3          field4

Query:
 field1:"test phrase" AND field2:"test" AND field3:field4

in this query we said that do search where field3 is equal to field4 ...
(and rest of the query)

if it is not possible, can we ask it as a new feature from Lucene
developers?

It could probably be done, but would be quite an expensive query to place.

However, a request like this usually tiggers questions about the design of an index with such needs. There is probably a better solution. Start by telling us about the data you have inserted to the index, and what it is you try to achieve.

In essence, Lucene is not a relational database.

--
karl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to