As you can see, i'm search work 'elasticsearch' in text : ElasticSearch can
be used to search all 1kind of documents. It provides a scalable search
solution, has near real-time search and support for multitenancy.[5]
ElasticSearch is distributed, which means that indices can be divided into
shards and each shard can have zero or more replicas. Each node hosts one
or more shards, and acts as a coordinator to delegate operations to the
correct shard(s). Rebalancing and routing are done automatically.
and highlighted text returned:
"ElasticSearch can be used to search all 1kind of documents. It
provides a scalable search solution",
", has near real-time search and support for multitenancy.[5] ElasticSearch is distributed, which"
Is it possible to highlight text where matched text is between dots ? I
want to get this highlight :
"ElasticSearch can be used to search all 1kind of documents.",
"ElasticSearch is distributed, which means that indices can be
divided into shards and each shard can have zero or more replicas."
When highlighting a field that is mapped with term vectors, boundary_chars can be configured to define what constitutes a boundary for highlighting. Its a single string with each boundary character defined in it. It defaults to .,!? \t\n.
The boundary_max_size allows to control how far to look for boundary characters, and defaults to 20.
I never played with it myself. But I hope this could help.
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
As you can see, i'm search work 'elasticsearch' in text : ElasticSearch can be used to search all 1kind of documents. It provides a scalable search solution, has near real-time search and support for multitenancy.[5] ElasticSearch is distributed, which means that indices can be divided into shards and each shard can have zero or more replicas. Each node hosts one or more shards, and acts as a coordinator to delegate operations to the correct shard(s). Rebalancing and routing are done automatically.
and highlighted text returned:
"ElasticSearch can be used to search all 1kind of documents. It provides a scalable search solution",
", has near real-time search and support for multitenancy.[5] ElasticSearch is distributed, which"
Is it possible to highlight text where matched text is between dots ? I want to get this highlight :
"ElasticSearch can be used to search all 1kind of documents.",
"ElasticSearch is distributed, which means that indices can be divided into shards and each shard can have zero or more replicas."
I mapped my field like this "message" : { "type" : "string", "term_vector"
: "with_positions_offsets"} but results is still not what i wanted.
All i want to do is to get text between dots no matter how long that text
will be.
GuriK
On Fri, Aug 24, 2012 at 5:43 AM, David Pilato david@pilato.fr wrote:
When highlighting a field that is mapped with term vectors, boundary_chars can
be configured to define what constitutes a boundary for highlighting. Its a
single string with each boundary character defined in it. It defaults to .,!?
\t\n.
The boundary_max_size allows to control how far to look for boundary
characters, and defaults to 20.
I never played with it myself. But I hope this could help.
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
As you can see, i'm search work 'elasticsearch' in text : Elasticsearch
can be used to search all 1kind of documents. It provides a scalable search
solution, has near real-time search and support for multitenancy.[5]
Elasticsearch is distributed, which means that indices can be divided into
shards and each shard can have zero or more replicas. Each node hosts one
or more shards, and acts as a coordinator to delegate operations to the
correct shard(s). Rebalancing and routing are done automatically.
and highlighted text returned:
"Elasticsearch can be used to search all 1kind of documents. It
provides a scalable search solution",
", has near real-time search and support for multitenancy.[5] Elasticsearch is distributed, which"
Is it possible to highlight text where matched text is between dots ? I
want to get this highlight :
"Elasticsearch can be used to search all 1kind of documents.",
"Elasticsearch is distributed, which means that indices can be
divided into shards and each shard can have zero or more replicas."
I mapped my field like this "message" : { "type" : "string", "term_vector" : "with_positions_offsets"} but results is still not what i wanted.
All i want to do is to get text between dots no matter how long that text will be.
GuriK
On Fri, Aug 24, 2012 at 5:43 AM, David Pilato david@pilato.fr wrote:
Hi GuriK,
When highlighting a field that is mapped with term vectors, boundary_chars can be configured to define what constitutes a boundary for highlighting. Its a single string with each boundary character defined in it. It defaults to .,!? \t\n.
The boundary_max_size allows to control how far to look for boundary characters, and defaults to 20.
I never played with it myself. But I hope this could help.
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
As you can see, i'm search work 'elasticsearch' in text : Elasticsearch can be used to search all 1kind of documents. It provides a scalable search solution, has near real-time search and support for multitenancy.[5] Elasticsearch is distributed, which means that indices can be divided into shards and each shard can have zero or more replicas. Each node hosts one or more shards, and acts as a coordinator to delegate operations to the correct shard(s). Rebalancing and routing are done automatically.
and highlighted text returned:
"Elasticsearch can be used to search all 1kind of documents. It provides a scalable search solution",
", has near real-time search and support for multitenancy.[5] Elasticsearch is distributed, which"
Is it possible to highlight text where matched text is between dots ? I want to get this highlight :
"Elasticsearch can be used to search all 1kind of documents.",
"Elasticsearch is distributed, which means that indices can be divided into shards and each shard can have zero or more replicas."
I mapped my field like this "message" : { "type" : "string",
"term_vector" : "with_positions_offsets"} but results is still not what
i wanted.
All i want to do is to get text between dots no matter how long that text
will be.
GuriK
On Fri, Aug 24, 2012 at 5:43 AM, David Pilato david@pilato.fr wrote:
When highlighting a field that is mapped with term vectors,
boundary_chars can be configured to define what constitutes a boundary
for highlighting. Its a single string with each boundary character defined
in it. It defaults to .,!? \t\n.
The boundary_max_size allows to control how far to look for boundary
characters, and defaults to 20.
I never played with it myself. But I hope this could help.
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
As you can see, i'm search work 'elasticsearch' in text : Elasticsearch
can be used to search all 1kind of documents. It provides a scalable search
solution, has near real-time search and support for multitenancy.[5]
Elasticsearch is distributed, which means that indices can be divided into
shards and each shard can have zero or more replicas. Each node hosts one
or more shards, and acts as a coordinator to delegate operations to the
correct shard(s). Rebalancing and routing are done automatically.
and highlighted text returned:
"Elasticsearch can be used to search all 1kind of documents. It
provides a scalable search solution",
", has near real-time search and support for multitenancy.[5] Elasticsearch is distributed, which"
Is it possible to highlight text where matched text is between dots ? I
want to get this highlight :
"Elasticsearch can be used to search all 1kind of documents.",
"Elasticsearch is distributed, which means that indices can be
divided into shards and each shard can have zero or more replicas."
I don't understand the "between dots" part; I can't see the pattern between the actual output and the desired output. Are you saying you always want the highlighted (wrapped with EM) to be the first characters of the highlight excerpt, and not midway within the string?
I don't understand the "between dots" part; I can't see the pattern between the actual output and the desired output. Are you saying you always want the highlighted (wrapped with EM) to be the first characters of the highlight excerpt, and not midway within the string?
You're right David. I don't want to specify how many words to highlight
before or/and after matched text. I just want full sentence which includes
matched text.
On Sat, Aug 25, 2012 at 1:08 PM, David Pilato david@pilato.fr wrote:
I think he wants to highlight a full sentence and not 5 words before and
after the highlighted term.
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
I don't understand the "between dots" part; I can't see the pattern
between the actual output and the desired output. Are you saying you always
want the highlighted (wrapped with EM) to be the first characters of the
highlight excerpt, and not midway within the string?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.