Solr - finding the closest match of multivalued fields index -


i have solr index that's indexing items multiple tags (multivalued)

for example :

<item>     <name>america x</name>     <id>1</id>     <tags>         <tag>edward norton</tag>         <tag>beverly d'angelo</tag>         <tag>ethan suplee</tag>     </tags> </item>  <item>     <name>the score</name>     <id>2</id>     <tags>         <tag>robert de niro</tag>         <tag>edward norton</tag>         <tag>marlon brando</tag>     </tags> </item> 

i perform query find closest match searching "rebert de niro" , "edward norton" , "ben stiller"

the complexity is, there isn't item includes 3 tags mentioned, closest second item has 2 out of 3 tags.

i wouldn't want perform manual permutation combined query since can complex if search many tags @ once.

see mm parameter (minimum match) available in (e)dismax. allows number of clauses should match, or minimum number of matches necessary. long specify and, you'll require clauses present.

you can specify or - documents matching more terms should scored higher automagically iirc. see debugquery see how scoring each match has been calculated.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -