Hi,
I setup my index using standard tokenizer & two filter [ asciifolding &
lowercase]
I index data with - _ symbols, eg: abc-xyz, abc_xyz
Then I use query_string to search:
If my query is: - or _ then nothing found (fine)
But if my query is: 045 or 095 (ascii code of 2 above symbols)
then my result will abc-xyz or abc_xyz
I think it's look like query_string had search on store field not in
analyzed field isn't it ?
query_string uses the same analyzer you used at index time. But if you don't set the field you are querying on, it will use _all field which could have a different analyzer.
Elasticsearch does not search on stored field.
That said, I don't fully understand what you are doing here. Could you gist a full curl recreation?
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Hi,
I setup my index using standard tokenizer & two filter [ asciifolding & lowercase]
I index data with - _ symbols, eg: abc-xyz, abc_xyz
Then I use query_string to search:
If my query is: - or _ then nothing found (fine)
But if my query is: 045 or 095 (ascii code of 2 above symbols)
then my result will abc-xyz or abc_xyz
I think it's look like query_string had search on store field not in analyzed field isn't it ?
Hi David Pilato,
It's what I read from Mastering Elasticsearch. I think the problem is
Frontend dev have used an custom encode to trip html data.
Thanks
On Monday, March 31, 2014 1:00:18 PM UTC+7, David Pilato wrote:
query_string uses the same analyzer you used at index time. But if you
don't set the field you are querying on, it will use _all field which could
have a different analyzer.
Elasticsearch does not search on stored field.
That said, I don't fully understand what you are doing here. Could you
gist a full curl recreation?
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 31 mars 2014 à 06:30, kidkid <zki...@gmail.com <javascript:>> a écrit :
Hi,
I setup my index using standard tokenizer & two filter [ asciifolding &
lowercase]
I index data with - _ symbols, eg: abc-xyz, abc_xyz
Then I use query_string to search:
If my query is: - or _ then nothing found (fine)
But if my query is: 045 or 095 (ascii code of 2 above symbols)
then my result will abc-xyz or abc_xyz
I think it's look like query_string had search on store field not in
analyzed field isn't it ?
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.