solr - Boost results by position in multi-valued field -


i have hierarchical structure client->project->subproject (it can have n levels). each leaf (subproject) keep multi-valued ordered field of parents root, search can match on both name , parent names.

when searches "pro" results show in following order: subprojects first, projects, clients, below:

<doc>   <str name="name">sub**pro**ject1</name>   <arr name="parentnames">     <str>project1</str>     <str>client1</str>   </arr> </doc> <doc>   <str name="name">subprj2</name>   <arr name="parentnames">     <str>**pro**ject1</str>     <str>client1</str>   </arr> </doc> <doc>   <str name="name">subprj3</name>   <arr name="parentnames">     <str>prj2</str>     <str>client **pro**1</str>   </arr> </doc> 

boosting name simple, boosting parentnames applies equally entries in multi-valued field, entries 2 , 3 not appear in order wanted.

i assume there no straightforward way achieve this, way go? custom search component or maybe somehow boosting values @ index time?

to answer own question, looks article may hold answer: http://architects.dzone.com/articles/searching-hierarchical-fields


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -