Questions tagged [elasticsearch-analyzers]
145 questions
2
votes
1 answer
ElasticSearch - custom analyzer with filters - filters not applied
I have the following query:
GET /nameofmyindex/_analyze
{
"text" : "Limousinetesting",
"explain": true,
"analyzer": "default"
}
That results in:
{
"detail" : {
"custom_analyzer" : true,
"charfilters" : [ ],
"tokenizer" : {
…

Aron Novak
- 25
- 4
2
votes
1 answer
Elastic Search Analyzer for Dynamically Defined Regular Expression Searches
We have lots of documents in an elastic search index and doing full text searches at the moment. My next requirement in a project is finding all credit cards data in documents. Also user will be able to define some regular expression searching…

Thorux
- 197
- 1
- 1
- 11
2
votes
1 answer
Disabling Elasticsearch search analyzer
I'm working on the elasticsearch version 7.2 and i'm in the
process of improving the performance of ES calls made by the
application.
From what I read, if we haven't set a "search analyzer" , by
default standard analyzer will be set.
But in…

Asiri Liyana Arachchi
- 2,663
- 5
- 24
- 43
2
votes
1 answer
Can't get proper result from elasticsearch based on query and document tokenization
I'm trying to implement a search system in which I need to use Edge NGRAM Tokenizer. Settings for creating an index are shown below. I have used same tokenizer for both documents and search query.
(Documents are in Perisan language)
PUT /test
{
…

Parisa Payami
- 83
- 1
- 1
- 6
2
votes
0 answers
Make a analyze api call using the JEST
I have a very simple requirement, I need to get the analyzed text of my search term based on the default analyzer set for my index.
I am using the analyze API https://www.elastic.co/guide/en/elasticsearch/reference/1.7/indices-analyze.html to get…

Amit
- 30,756
- 6
- 57
- 88
2
votes
1 answer
Elasticsearch - Stop analyzer doesn't allow number
I'm trying to build a search utility using elasticsearch 6.3.0 where any term can be searched within the database. I have applied Stop Analyzer to exclude some of the generic words. However, after having that analyzer system stopped giving me term…

Dhaval
- 901
- 3
- 8
- 26
2
votes
1 answer
Extract keywords from fields
I want to write a query to analyze one or more fields ?
i.e. current analyzers require text to function, instead of passing text I want to pass a field value.
If I have a document like this
{
"desc": "A document description",
"name": "This…

Ayman
- 1,387
- 4
- 20
- 35
2
votes
1 answer
Search for both numbers and text using a in-built or custom analyzer in elastic search
This question is in continuation of my previous this SO question. I've some text, on which I want to perform search both on numbers and text.
My Text:-
8080.foobar.getFooLabelFrombar(test.java:91)
And I want to search on getFooLabelFrombar,…

Amit
- 30,756
- 6
- 57
- 88
2
votes
1 answer
How can I specify index / field analyzers using NEST fluent mapping for ElasticSearch 5.x?
Reasonably new to ElasticSearch / NEST - I have a property on a mapping that holds UK postcodes (eg DT5 2HW, BB1 9DR). At the moment, I have the following code:-
if (!client.IndexExists("user").Exists)
{
client.CreateIndex("user", c =>…

Henry C
- 4,781
- 4
- 43
- 83
2
votes
0 answers
How to query fields with path_hierarchy analyzer in elasticsearch?
I have configured path_analyzer in elasticsearch using below configuration.
PUT /elastic_course
{
"settings": {
"analysis": {
"analyzer": {
"path_analyzer": {
"tokenizer": "path_tokenizer"
},
…

Bhushan Gadekar
- 13,485
- 21
- 82
- 131
1
vote
1 answer
ElasticSearch: check how analyzers/tokenizers/filters applied to an index split text into tokens?
I'm quite new to ElasticSearch, so if I overlook something obvious/basic, please forgive me.
Now I'm using ElasticSearch at work, and want to see how the complex settings of analyzers/tokenizers/filters--which are set by my predecessors--split texts…

Nullable Yogurt
- 207
- 2
- 7
1
vote
1 answer
Elasticsearch - Adding case-insensitive exact match search to custom analyzer
I have an Index as follows:
{
"entities": {
"mappings": {
"properties": {
"content": {
"type": "text",
"analyzer": "stop_delimiter_stemmer_analyzer"
}
}
}
}
}
And following is…

msln
- 1,318
- 2
- 19
- 38
1
vote
1 answer
Create all possible tokens in order in elasticsearch
I am trying to create an analyzer which can return all possible tokens, for example for this word AB-12-1993 xyz.pdf the tokens generated would be AB, AB-12, -12-1993, 12-1993, -1993, 1993, AB-12-1993 xyz, xyz, xyz.pdf, AB-12-1993 xyz.pdf, if any…

Shivam Raj
- 64
- 1
- 7
1
vote
1 answer
Elasticsearch: Ngram tokenizer perfomance
I try to search documents in elasticsearch with simple query like this:
{
"query": {
"match": { "name": "Test name" }
}
}
and i have about 70 million documents in the index. I used whitespace tokenizer before, and it's works ok. But…

kosoban
- 13
- 3
1
vote
1 answer
Elastic search Analyse API response with error
I installed an Elastic Search Server (ES server), version 7.16.3, and I can't use (or play with) the analyse API mentioned here :
Test an analyser
I've got the response:
{
"error": "Incorrect HTTP method for uri [/_analyse] and method [POST],…

François F.
- 229
- 2
- 17