You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by sharnel pereira <sh...@gmail.com> on 2016/11/12 17:36:30 UTC

solr custom boost

Hi,

I have a index with contacts. I also have a graph with triples.

When a person logs in, with the information, I am able to query the graph
to get the node lengths for that person to various contents such has Job,
location etc.

ex. PersonA, Job:Programmer, Location:Floor2
Node Lengths :
Job: Programmer>Programmer: 0, Programmer>Architect :1, Programmer>Manager
:2
Location: Floor2>Floor1: 1, Floor2>Floor2:0, Floor2>Floor3:1

node length :0, weight:10
nodeLength:1, weight:8
nodeLength:2, weight:6

I want to have a query time boost with custom algorithm where the node
lengths value can be used for boost weight.
ex: JobWeight+LocationWeight.

job:programmer^10*+*location:floor1^8 job:architect^8*+*location:floor1^8
job:manager*+*location:floor1^8 job:programmer^10*+*location:floor2^10

A query such as above with function queries would be too long when added
more data in graph and if i need custom boost algorithm.
Any advice on how to achieve this would be most appreciated

Thanks
Sharnel