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
Add keyword resources as suggest and add titles of keywords edges #19
Conversation
1105444
to
ff8f333
Compare
support/elasticsearch_mapping.erl
Outdated
[], | ||
m_edge:objects(Id, subject, Context) | ||
), | ||
[{keywords, ObjectTitles}] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to store this in the incoming|outgoing_edges
nested items.
ElasticQuery = #{ | ||
<<"suggest">> => #{ | ||
<<"suggest">> => #{ | ||
<<"prefix">> => Prefix, | ||
<<"completion">> => #{ | ||
<<"field">> => Field | ||
<<"field">> => Field, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would Field
suggest_*
be possible?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not.
<<"suggest">> => #{ | ||
<<"suggest">> => #{ | ||
<<"text">> => Word, | ||
<<"term">> => #{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change into terms
with multiple fields: title*
?
…r rsc's WIP did you mean suggest Fixed did-you-mean query Size configurable and didyoumean sort on freq Removed debug
748410e
to
13ba4c7
Compare
This branch adds keyword rsc's to suggest:completion field, weighted on popularity.
It also adds titles of keywords to the keywords field so the general match can handle the suggested keyword title.
It's WIP for solving #3
and #12