"], ...">

ElasticSearch returns fragments significantly over fragment size

I have the following to set my marker in elasticsearch

{ 
  pre_tags: ["<b>"], 
  post_tags: ["</b>"], 
  fields: { 
    title: { number_of_fragments: 0 },                                           
    body:  { number_of_fragments: 1, fragment_size: 200, type: "plain" }
  }
}

      

however, sometimes I get a body selection over 300 characters and I'm not sure why this is rare, but from time to time the search result will go through with a very long search chunk.

My workaround is that I am trimming the result manually, but I would rather not.

+3
elasticsearch


source to share


No one has answered this question yet

Check out similar questions:

599
Solr vs ElasticSearch
438
Elasticsearch query to return all records
366
ElasticSearch, Sphinx, Lucene, Solr, Xapian. What is suitable for use?
350
Make elasticsearch only return specific fields?
312
Removing data from ElasticSearch
265
Shards and replicas in Elasticsearch
99
ElasticSearch - Returns unique values
2
Can ElasticSearch stitch a field to display matches from different parts of the field?
1
How does ElaserSearch evaluate filter queries (not text queries)?
1
Elastic search - highlights in the center of fragments



All Articles
Loading...
X
Show
Funny
Dev
Pics