well, that was quickly, it is ok with using the termsQuery search with many values in one a single field, the problem here, is that my values contain "-" wich is a special character, so elasticsearch replace it with space (I think)
If any one has an answer, for this problem (special characters) I'll be really thankful
Thank you for Christoph, I found how to modify the tokenizer to whistespace one (using JAVA) but now, the wildcard terms are not working anymore, '*' and '?' are not considered token chars anymore, which is not good because I need these characters in my search
Is there anyway to keep '*' and '?' and remove only other characters such as '-' and '@' from token chars ??
I'm afraid I'm not sure I understand what you are trying to do here. This wildcard query basically matches everything in the param2 field. Also I don't quiet understand what you mean by "'*' and '?' are not considered token chars anymore". Maybe you can give an example of a document you are trying to find and which isn't returned by the query you are using?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.