Highlighting API: suggestion for new functionality


(Lukáš Vlček) #1

Hi,

  1. Would it be possible to add support for custom FragmentsBuilder ?
    I would like to see something like NullFragmenter and Fragmenter that is
    aware of sentence boundaries.

  2. Would it be possible to apply highlighting to a REST GET operation?
    http://www.elasticsearch.com/docs/elasticsearch/rest_api/get/
    I would like to see an option to get fields or _source value with specific
    fields highlighted.
    One way how to get similar result now is using term query on an ID field (to
    get one specific document) which would allow to use highlight DSL but still
    getting full content of some field highlighted would require either
    NullFragmenter (which is not implemented now) or setting value of
    fragment_size to some arbitrary large number.

Regards,
Lukas


(Shay Banon) #2

Yea, both are possible. Want to open issues for them?

On Fri, Aug 6, 2010 at 4:37 PM, Lukáš Vlček lukas.vlcek@gmail.com wrote:

Hi,

  1. Would it be possible to add support for custom FragmentsBuilder ?
    I would like to see something like NullFragmenter and Fragmenter that is
    aware of sentence boundaries.

  2. Would it be possible to apply highlighting to a REST GET operation?
    http://www.elasticsearch.com/docs/elasticsearch/rest_api/get/
    I would like to see an option to get fields or _source value with specific
    fields highlighted.
    One way how to get similar result now is using term query on an ID field
    (to get one specific document) which would allow to use highlight DSL but
    still getting full content of some field highlighted would require either
    NullFragmenter (which is not implemented now) or setting value of
    fragment_size to some arbitrary large number.

Regards,
Lukas


(Lukáš Vlček) #3

Cool, I will open tickets for these two.

On Sun, Aug 8, 2010 at 9:38 PM, Shay Banon shay.banon@elasticsearch.comwrote:

Yea, both are possible. Want to open issues for them?

On Fri, Aug 6, 2010 at 4:37 PM, Lukáš Vlček lukas.vlcek@gmail.com wrote:

Hi,

  1. Would it be possible to add support for custom FragmentsBuilder ?
    I would like to see something like NullFragmenter and Fragmenter that is
    aware of sentence boundaries.

  2. Would it be possible to apply highlighting to a REST GET operation?
    http://www.elasticsearch.com/docs/elasticsearch/rest_api/get/
    I would like to see an option to get fields or _source value with
    specific fields highlighted.
    One way how to get similar result now is using term query on an ID field
    (to get one specific document) which would allow to use highlight DSL but
    still getting full content of some field highlighted would require either
    NullFragmenter (which is not implemented now) or setting value of
    fragment_size to some arbitrary large number.

Regards,
Lukas


(Lukáš Vlček) #4


On Sun, Aug 8, 2010 at 10:02 PM, Lukáš Vlček lukas.vlcek@gmail.com wrote:

Cool, I will open tickets for these two.

On Sun, Aug 8, 2010 at 9:38 PM, Shay Banon shay.banon@elasticsearch.comwrote:

Yea, both are possible. Want to open issues for them?

On Fri, Aug 6, 2010 at 4:37 PM, Lukáš Vlček lukas.vlcek@gmail.comwrote:

Hi,

  1. Would it be possible to add support for custom FragmentsBuilder ?
    I would like to see something like NullFragmenter and Fragmenter that is
    aware of sentence boundaries.

  2. Would it be possible to apply highlighting to a REST GET operation?
    http://www.elasticsearch.com/docs/elasticsearch/rest_api/get/
    I would like to see an option to get fields or _source value with
    specific fields highlighted.
    One way how to get similar result now is using term query on an ID field
    (to get one specific document) which would allow to use highlight DSL but
    still getting full content of some field highlighted would require either
    NullFragmenter (which is not implemented now) or setting value of
    fragment_size to some arbitrary large number.

Regards,
Lukas


(Shay Banon) #5

If you want to try and tackle them, I am here to help.

On Sun, Aug 8, 2010 at 11:17 PM, Lukáš Vlček lukas.vlcek@gmail.com wrote:

http://github.com/elasticsearch/elasticsearch/issues/issue/307
http://github.com/elasticsearch/elasticsearch/issues/issue/308

On Sun, Aug 8, 2010 at 10:02 PM, Lukáš Vlček lukas.vlcek@gmail.comwrote:

Cool, I will open tickets for these two.

On Sun, Aug 8, 2010 at 9:38 PM, Shay Banon shay.banon@elasticsearch.comwrote:

Yea, both are possible. Want to open issues for them?

On Fri, Aug 6, 2010 at 4:37 PM, Lukáš Vlček lukas.vlcek@gmail.comwrote:

Hi,

  1. Would it be possible to add support for custom FragmentsBuilder ?
    I would like to see something like NullFragmenter and Fragmenter that is
    aware of sentence boundaries.

  2. Would it be possible to apply highlighting to a REST GET operation?
    http://www.elasticsearch.com/docs/elasticsearch/rest_api/get/
    I would like to see an option to get fields or _source value with
    specific fields highlighted.
    One way how to get similar result now is using term query on an ID field
    (to get one specific document) which would allow to use highlight DSL but
    still getting full content of some field highlighted would require either
    NullFragmenter (which is not implemented now) or setting value of
    fragment_size to some arbitrary large number.

Regards,
Lukas


(system) #6