how to find documents that has united and states but not with in 30
words ?(united
AND states NOT WITHIN 30 WORDS)?
Use "united state"~30 in query string query or you can directly use slop in
phrase match query.
For second and the third , you need to use the above example with a high
slop value.
Last one , you need to expand that to query of above format.
Thank you , can you clarify this , do we need to use not operator for
getting "united and states not with in 30 words "
I tested it works to get united and states with in 30 words but not for"
united and states not with in 30 words"
united AND states NOT WITHIN 30 WORDS
On Wednesday, 8 April 2015 00:35:35 UTC-4, vineeth mohan wrote:
Hi ,
how to find documents that has united and states but not with in 30 words
?(united AND states NOT WITHIN 30 WORDS)?
Use "united state"~30 in query string query or you can directly use slop
in phrase match query.
For second and the third , you need to use the above example with a high
slop value.
Last one , you need to expand that to query of above format.
Actually I wrote the below queries , let me know if they are correct
"United States" ~ 3 - to get documents with United States with in 30
words
2)"United States" NOT "United States" ~ 30 - to get documents which has
united states not with in 30 words
3)war AND peace ~ (novel OR book) - to get documents which has war and
peace and near to the words novel or book
4)china AND India ~ World to get documents which has both china and india
and near to the word "World"
What I dont know is to specify the order of the words in the queries
how to write queries to get documents which has united followed by states
how to write queries to get documents which has china before India
On Wednesday, 8 April 2015 00:35:35 UTC-4, vineeth mohan wrote:
Hi ,
how to find documents that has united and states but not with in 30 words
?(united AND states NOT WITHIN 30 WORDS)?
Use "united state"~30 in query string query or you can directly use slop
in phrase match query.
For second and the third , you need to use the above example with a high
slop value.
Last one , you need to expand that to query of above format.
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.