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

Lucene full text: more like this function #7408

Closed
robfrank opened this issue May 11, 2017 · 0 comments
Closed

Lucene full text: more like this function #7408

robfrank opened this issue May 11, 2017 · 0 comments
Assignees
Milestone

Comments

@robfrank
Copy link
Contributor

robfrank commented May 11, 2017

New lucene function (#7155) that perform a more like this query:

SELECT FROM Song where search_more(['#25:2', '#25:3']) = true;

Or with a subquery:

SELECT from Song  let $a=(SELECT @rid FROM Song WHERE author = 'Hunter')  
WHERE SEARCH_More( $a, { 'minTermFreq':1, 'minDocFreq':1} ) = true

MoreLikeThis configuration parameters should be passed as json:

SELECT from Song where SEARCH_More( [#25:2, #25:3] , 
{'fields': [ 'title' ], 
'minTermFreq':1, 
'minDocFreq':1,
'maxWordLen':5
}) = true

All the configuration parameters of MLT should be exposed.

The function will use the MoreLikeThis capability from Lucene itself: https://lucene.apache.org/core/6_5_1/queries/index.html

@robfrank robfrank self-assigned this May 11, 2017
@robfrank robfrank added this to the 3.0.0-M2 milestone May 11, 2017
robfrank added a commit that referenced this issue May 24, 2017
robfrank added a commit that referenced this issue Jun 12, 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

1 participant