lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fiedzia <>
Subject Re: documents with known relevancy
Date Fri, 16 Jul 2010 15:56:16 GMT

I came up with another idea, which seem to do what i want. Any comments about
better solutions
or improving efficiency are welcome:

for each document create multivalue text field "tags" with all tags,
and multiple dynamic fields for each tag containging value, so we have:
  id: 123
  tags: tag1, tag2, ..., tagN
  tag1_float: 0.1,
  tag2_float: 0.2,
  tagN_float: 0.3,

then query for tag1 and tag2 could like that:
tags:tag1 AND tags: tag2
and sort results by sum of tag1_float and tag2_float.

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message