Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boosts in multi field index #5198

Closed
robfrank opened this issue Oct 21, 2015 · 1 comment
Closed

Boosts in multi field index #5198

robfrank opened this issue Oct 21, 2015 · 1 comment
Assignees
Milestone

Comments

@robfrank
Copy link
Contributor

From @fmarsoni on January 25, 2015 21:15

It would be a nice enhancement to have boosts support when querying a lucene index

public MultiFieldQueryParser(Version matchVersion, String[] fields, Analyzer analyzer, Map<String,Float> boosts)

Right now we can send queries like this:
+(title:term1^5.0 body:term1^10.0) +(title:term2^5.0 body:term2^10.0)

But using lucene support for this would be better.

Copied from original issue: orientechnologies/orientdb-lucene#42

@luigidellaquila luigidellaquila assigned robfrank and unassigned wolf4ood Nov 6, 2015
@robfrank robfrank added this to the 3.0.0-M2 milestone Jun 16, 2017
robfrank added a commit that referenced this issue Jul 4, 2017
@robfrank
Copy link
Contributor Author

robfrank commented Jul 4, 2017

It is possible to pass a map of boosts:

select * from Song where search_class ('title:forever OR author:Boudleaux' , {'boost':{ 'title': 2  }  })=true

@robfrank robfrank closed this as completed Jul 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants