Questions tagged [elasticsearch-analyzers]

145 questions
0
votes
2 answers

Elasticsearch: How does search work when using combination of analyzers?

I'm a novice to Elasticsearch (ES), messing around with the analyzers. As the documentation states, the analyzer can be specifed "index time" and "search time", depending on the use case. My document has a text field title, and i have defined the…
0
votes
2 answers

Elasticsearch `Procter&Gamble` and `Procter & Gamble` issues

My task is: * Make procter&gamble and procter & gamble produce the same results including score * Make it universal, not via synonyms, as it can be any other Somehow&Somewhat * Highlight procter&gamble or procter & gamble, not separate tokens if…
AHeavyObject
  • 562
  • 1
  • 7
  • 18
0
votes
1 answer

Elasticsearch - at&t and procter&gamble cases

By default Elasticsearch with English analyzer breaks at&t into tokens at, t and then removes at as a stopword. POST _analyze { "analyzer": "english", "text": "A word AT&T Procter&Gamble" } As a result tokens look like: { "tokens" : [ …
AHeavyObject
  • 562
  • 1
  • 7
  • 18
0
votes
1 answer

Elasticsearch - can I define index time analyzer on document level?

I want to index pages in multiple languages into a single index. But for each language I need to define custom language analyzer. So for english page it would use english analyzer, for czech page it would use czech analyzer. At search time I would…
Tomage
  • 187
  • 1
  • 12
0
votes
0 answers

Exact search getting less precedence than phonetic search?

I have an elasticsearch index and am using the following query: "_source": [ "title", "content" ], "size": 15, "from": 0, "query": { "bool": { "must": { "multi_match": { …
0
votes
1 answer

AbstractElasticsearchRepository : failed to load elasticsearch nodes :MapperParsingException: analyzer [autocomplete_index] not found for field

User case: I want to develop a microservice with SpringBoot and ElasticSearch following search-as-user-type pattern. In o ther words, if I type "d" I want answer back Demetrio, Denis, Daniel. Typing second letter "e" brings Demetrio and Denis and…
0
votes
1 answer

Hibernate search and elasticsearch: mapper_parsing_exception + analyzer [...] not found for field [...]

I'm using hibernate search to automatically create indexes for a specific entity @Entity @Indexed public class Entity extends BaseEntity { private static final long serialVersionUID = -6465422564073923433L; @Id @GeneratedValue(strategy…
0
votes
1 answer

No match on document if the search string is longer than the search field

I have a title I am looking for The title is, and is stored in a document as "Police diaries : stefan zweig" When I search "Police" I get the result. But when I search Policeman I do not get the result. Here is the query: { "query": { …
0
votes
1 answer

Magnolia 6.1.1 Analyzers (Lowercase and Accents)

I'm trying to use analyzers with Magnolia CMS version 6.1.1 (Community edition) to make searchs with same result with words like "Sánchez" and "Sanchez", or even lowercase searches like "sánchez" or "sanchez" or something like that, but…
slynk
  • 1
0
votes
1 answer

How to create a Elastic Search dashboard in Grafana with variable (dropdown to filter data) independent of Time Range Filter

I have created a Variable in Grafana 6.6 to provide filter dropdown option to user. I am using Elastic Search datasource. But the dropdown lists are coming filtered by time range .How we can make it independent of time range , in other words I don’t…
0
votes
1 answer

Match a word without space to match with a text with space in elasticsearch

The question title is a bit misleading but I didn't know how to put it properly but here is my scenario I have a word Water wipes (see the space in between) in the title of a product record in my elastic search. Now I need to match it for…
Shobi
  • 10,374
  • 6
  • 46
  • 82
0
votes
1 answer

Elasticsearch - Reindex single field with different analyzer using Python

I use dynamic mapping in elasticsearch to load my json file into elasticsearch, like this: es = Elasticsearch([{'host': 'localhost', 'port': 9200}]) def extract(): f = open('tmdb.json') if f: return json.loads(f.read()) movieDict =…
Alex16237
  • 199
  • 10
0
votes
1 answer

ElasticSearch Terms Aggregation not working with custom Analyzer and Pattern Tokenizer

I am trying the Terms Aggregation for the first time and there seems to be an issue with the custom pattern tokenizer I am using. Here is the Mapping: { "mappings": { "properties": { "contentItemType": { "type": "text", …
0
votes
1 answer

How to filter the follwing query in elasticsearch?

I am using the following search: { "_source": [ "title", "bench", "court", "id_" ], "size": 10, "query": { "bool": { "must": { "multi_match": { …
Shawn
  • 261
  • 1
  • 7
  • 25
0
votes
1 answer

How to give higher score to exact searches than phonetic ones in Elasticsearch?

I am currenty using Elasticsearch's phonetic analyzer. I want the query to give higher score to exact matches then phonetic ones. Here is the query I am using: { "query": { "multi_match" : { "query" : "Abhijeet", …