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

Add keyword resources as suggest and add titles of keywords edges #19

Merged
merged 2 commits into from Jul 11, 2017

Conversation

fredpook
Copy link

@fredpook fredpook commented Jun 8, 2017

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

[],
m_edge:objects(Id, subject, Context)
),
[{keywords, ObjectTitles}]
Copy link
Member

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,
Copy link
Member

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?

Copy link
Member

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">> => #{
Copy link
Member

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*?

@ddeboer ddeboer changed the title WIP add keyword rsc's as suggest and add titles of keywords edges Add keyword resources as suggest and add titles of keywords edges Jul 11, 2017
Fred Pook and others added 2 commits July 11, 2017 15:46
…r rsc's

WIP did you mean suggest

Fixed did-you-mean query

Size configurable and didyoumean sort on freq

Removed debug
@ddeboer ddeboer merged commit 23103a5 into master Jul 11, 2017
@ddeboer ddeboer deleted the autocomplete_keywords branch July 11, 2017 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants