OK, yes that's true.  Although I'd expect term vectors to just increment
term count when a tag is re-applied (if you have term vectors enabled),
increasing a boost stored as a payload with each tag, each time an existing
tag is re-tagged maybe a more sensible approach if this is the case.
 You'll still have to rewrite the whole record for this though as its not
possible to 'update' a specific field value in Solr for efficiency reasons.

Rav

On Tue, Apr 3, 2012 at 4:50 PM, Chris Hostetter <hossman_luc...@fucit.org>wrote:

>
> : I am not sure why you suggest Payload for ranking documents with more
> : frequent tags above those with fewer tags.  Wont the term frequency part
> of
> : relevancy score ensure this by default?  If you make tags a 'lowercase'
>
> Sorry, yes ... absolutely - if you use omitNormws=false on the tags
> field, and add these two docs...
>
>  { id: doc1; tags: [house, house, house, boat] }
>  { id: doc2; tags: [house, boat, car, vegas] }
>
> ...then doc1 will score higher on a query for "tags:house.
>
> my suggestion to use payloads was because sending the same value many many
> times (ie: if 100,000 users apply the tag "house" you would need to index
> that doc with the word "house" repeated 100,000 times) can be prohibitive.
>
>
> -Hoss
>

Reply via email to