I am working on a multilingual project and I need some tips about mapping
(or queries). I have two needs :
- I would like to benefit of the full text power and specific language
analyzers power on a field of my documents. I need that for some of my
searches. Users can do some search like (Hello toto) that will return
documents containing (Hello, my name is toto) (1).
- On the other hand, users have also the ability to do some search like
("Hello toto") that won't return documents containing ("Hello, my name is
toto"), but they will only return documents containing ("Hello toto") (a
little bit as Google do when we use quotes) (2).
Currently, in my mapping, I have something like that:
This allow me to easily meet my first need, but not my second one.
I was thinking to index twice the field (using multi field types) but is it
a good idea? Won't it increase my index size?
Is there another way than using multi fields to meet my needs?
Thanks a lot for your replies.
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 email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/70b46c78-5e03-4ff9-8cd6-ba2217642fa2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.