Questions tagged [elasticsearch-analyzers]

145 questions
11
votes
2 answers

Elasticsearch : Completion suggester not working with whitespace Analyzer

I am new to Elastic search and I am trying to create one demo of Completion suggester with whitespace Analyzer. As per the documentation of Whitespace Analyzer, It breaks text into terms whenever it encounters a whitespace character. So my …
11
votes
5 answers

Creating an index Nest

How would I recreate the following index using Elasticsearch Nest API? Here is the json for the index including the mapping: { "settings": { "analysis": { "filter": { "trigrams_filter": { …
8
votes
2 answers

Trying to set the max_gram and min_gram in Elasticsearch

Im trying to deploy a Ruby on Rails app on a Ubuntu 16.04 EC2 server but is giving a error about the difference between max_gram and min_gram on Elasticsearch, i don't have any experience with Elasticsearch yet so im totally lost here and i need…
Cesar Rodriguez
  • 83
  • 1
  • 1
  • 5
8
votes
1 answer

Setting not_analyzed for a property in Nest 5.5.0

I have tried to set the "not_analyzed" index type via Nest 5.5.0 and I have no idea how to do it. My init: var map = new CreateIndexDescriptor(INDEX_NAME) .Mappings(ms => ms.Map(m => m.AutoMap())); var connectionSettings = new…
Michał J. Gąsior
  • 1,457
  • 3
  • 21
  • 39
5
votes
0 answers

Elasticsearch Suggestions using shingle

Is there a way to do this much better? The idea is to suggest words (search-as-you-type) like Amazon searchbox suggestions. I have a working solution but I think there is a better one. SETTINGS PUT store { "settings": { "max_shingle_diff" :…
4
votes
1 answer

Force Match phrase to discard results with full email searching only its domain

I'd like to find in my ElasticSearch index the string outlook.com inside a text with a match_phrase query. But I don't want results that are something...@outlook.com, that are taken with this query: GET /my_index/_search { "size": 1, "query": { …
4
votes
1 answer

How to search in nested data of index in Elasticsearch PHP Laravel

My JSON is like { "myData": [ { "id": "4rr9a74a-d7cc-11e8-824f-0242ac160002", "uri": "http://google.com/fagdge", "statement": "Distinguish between random and non-random sampling methods, identify possible sources of bias in…
Bhumi Shah
  • 9,323
  • 7
  • 63
  • 104
4
votes
0 answers

How to prevent slow match / match_phrase queries for keywords in Kibana?

How can I achieve that a match query for certain fields is equivalent to a term query? I have a larger index in Elastic covering events. Each event has an eventid field consisting of a random hex string (e.g. f4fc38c993c1a8273f9c40eedc9050b7) as…
kelunik
  • 6,750
  • 2
  • 41
  • 70
4
votes
2 answers

Elasticsearch cannot find standalone reserved characters

I use Kibana to execute query elastic (Query string query). When i search a word include escapable characters (reserved characters like: '\', '+', '-', '&&', '||', '!', '(', ')', '{', '}', '[', ']', '^', '"', '~', '*', '?', ':', '/'). It will get…
3
votes
3 answers

Split text containing into 3 tokens

We index a lot of documents that may contain titles like "lightbulb 220V" or "Box 23cm" or "Varta Super-charge battery 74Ah". However our users, when searching, tend to separate number and unit with whitespace, so they search for "Varta 74 Ah" they…
3
votes
1 answer

preserve_original the original token in elasticsearch

I have a token filter and analyzer as follows. However, I can't get the original token to be preserved. For example, if I _analyze using the word : saint-louis , I get back only saintlouis, whereas I expected to get both saintlouis and saint-louis…
Ram K
  • 1,746
  • 2
  • 14
  • 23
3
votes
1 answer

not able to search in compounding query using analyzer

I have a problem index which has multiple fields e.g tags (comma separated string of tags), author, tester. I am creating a global search where problems can be searched by all these fields at once. I am using boolean query e.g { "query":…
ashutosh sharma
  • 192
  • 2
  • 8
3
votes
0 answers

User-provided term vectors for highlighting in Elasticsearch

I want to use Elasticsearch's highlighting features in search results, but I can't use an analyzer plugin. Our (very custom) NLP pipeline is fairly heavy (in CPU and memory, and in production it may talk to other services for e.g. dictionary…
3
votes
1 answer

Setting multiple custom analyzers to single field in elasticsearch

I am working in ElasticSearch environment, I have installed elasticsearch on my local machine for version 5.4.3. I am trying to create index by defining some settings along with mappings. Following are my settings and mappings, { "settings":{ …
2
votes
1 answer

How to ignore double slashes while making a search query in elastic search?

For example, in the elastic search document, the string is stored as \\(\\log_4(3x^2+11x)=1\\) The search query what I want to make it work is (log_4(3x^2+11x)=1). What is the best way to make this work?
shoaib1992
  • 410
  • 1
  • 8
  • 26
1
2 3
9 10