lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jreeman <>
Subject Sorting in a particular case
Date Sat, 10 Feb 2007 20:39:03 GMT


Here is my problem : let say that a document can have one of its meta data
let's say 'domains' set either to "domain1" either to "domain2" either to
value "all_domains".

"all_domains" meaning the both domains ("domain1" and "domain2") are linked
to the document or rather the documents belongs to the two domains.

Now let's figure out that there are three documents:

the first "document1" has its metadata "domains" set to "domain1"
the second "document2" has its metadata "domains" set to "domain2"
the third document "document3" has its metadata "domains" set to

My issue is to retrieve the first two documents sorted by relevance like
that :


of course : when the user wants the documents belonging to "domain1".

Perhaps, do you have a solution to do this with lucene ?

Thang you for your help in advance.
View this message in context:
Sent from the Lucene - General mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message