Highlighting API: suggestion for new functionality

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

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

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

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

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:

Highlighting API: Add support for custom FragmentsBuilder · Issue #307 · elastic/elasticsearch · GitHub
Highlighting API: Apply highlighting to REST GET operation · Issue #308 · elastic/elasticsearch · GitHub

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