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

Support Highlight Query #85

Open
vp-hwood opened this issue Jan 29, 2015 · 4 comments
Open

Support Highlight Query #85

vp-hwood opened this issue Jan 29, 2015 · 4 comments

Comments

@vp-hwood
Copy link

Add a .query method to the Highlight class, to support the highlight_query field. http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-highlighting.html#_highlight_query

@waldemarnt
Copy link

We dont have this behavior ?
like this
http://docs.fullscale.co/elasticjs/ejs.Highlight.html

@vp-hwood
Copy link
Author

I know about ejs.Highlight. What I'm missing is the method that adds the highlight_query field. For example I want to build

{
  "query": ...,
  "highlight": {
    "fragment_size": 300,
    "highlight_query": {"query_string": {"query": myQueryString}},
     "fields": fields
  },
}

In elastic.js I would do (but can't)

ejs.Request()
  .query(ejs...)
  .highlight(ejs.Highlight(fields)
    .fragmentSize(300)
    .query(ejs.QueryStringQuery(myQueryString))) // .query does not exist in elastic.js!

@waldemarnt
Copy link

So, right, does make sense :D

@kuehn-sba
Copy link

+1 Please add the method that adds the highlight_query field. Thanks.

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

No branches or pull requests

3 participants