Can one do a singular/plural phrase match with the Query String Query?


(tbrianjones) #1

Can one perform the following query using wildcards ( instead of two
distinct phrases ) when using a Query String Query?
"photographic film" OR "photographic films"

These do not seem to work, and return the same number of results as just "photographic
film":
"photographic film?"
"photographic film*"

Can wildcards not be placed inside Exact Phrase queries? Is there a way to
mimic this?

My goal is to be able to perform queries like this:
"photo* film?"

... capturing:
"photo film"
"photo films"
"photographic films"
"photography films"
etc...

--
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/66cc151f-a235-40d4-a125-2236aae0f9bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(David Pilato) #2

I think a stemmer analyzer would be fit your use case: See http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/choosing-a-stemmer.html#choosing-a-stemmer

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr

Le 21 juillet 2014 à 20:53:09, Brian Jones (tbrianjones@gmail.com) a écrit:

Can one perform the following query using wildcards ( instead of two distinct phrases ) when using a Query String Query?
"photographic film" OR "photographic films"

These do not seem to work, and return the same number of results as just "photographic film":
"photographic film?"
"photographic film*"

Can wildcards not be placed inside Exact Phrase queries? Is there a way to mimic this?

My goal is to be able to perform queries like this:
"photo* film?"

... capturing:
"photo film"
"photo films"
"photographic films"
"photography films"
etc...

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/66cc151f-a235-40d4-a125-2236aae0f9bf%40googlegroups.com.
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/etPan.53cd6b41.19495cff.e03c%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/d/optout.


(system) #3