I think I can probably use a combo of the whitespace* and standard
analyzers.
My current analyzer settings are :
{
"analysis": {
"analyzer": {
"default_index": {
"tokenizer": "whitespace",
"filter": ["lowercase"]
},
"default_search": {
"tokenizer": "whitespace",
"filter": ["lowercase"]
}
}
}
}
-M
On Tuesday, 15 July 2014 16:15:23 UTC+1, vineeth mohan wrote:
Hello Mooky ,
You can apply multiple analyzers to a field -
GitHub - yakaz/elasticsearch-analysis-combo: Elasticsearch Combo AnalyzerSo you can add all your analyzer here and apply it.
Thanks
VineethOn Tue, Jul 15, 2014 at 8:10 PM, mooky <nick.mi...@gmail.com <javascript:>
wrote:
I have a bit of an odd requirement in so far as analyzer is concerned.
Wondering if anyone has any tips/suggestions.
I have an item I am indexing (grade) that has a property (name) whose
value can be "0# (99.995%)".
I am doing a prefix search on _all.
I want users to be able to search using 99 or 99.9 or 99.995 or 99.995%.
I also want the user to be able to copy-paste "0# (99.995%)" and it
should work.I am currently using the whitespace analyzer - which works for many of my
cases except the tricky one above.
99.995 doesnt work.
But "(99.995" does. Because obviously after whitespace tokenization, the
token begins with (.
I could filter out the "(" and ")" characters. But then "0# (99.995%)"
wont work.
Does anyone have some different suggestions?--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/9813b93a-249d-41a9-be21-12c8ec5d6d23%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/9813b93a-249d-41a9-be21-12c8ec5d6d23%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1f3177ef-020f-4263-bae4-ced1870567e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.