for example in the below 3 json docs how can I search for the word
"#Twitter" which should bring only doc1 and doc2,
"Twitter" - only doc3
"Elastic Search" as one single word - only in doc1
{"Name": "Doc1","postDate": "2012-10-10T12:29:00","Category": "#Twitter
messages ","Body":"this is a sample Elastic Search"}'
{"Name": "Doc2","postDate": "2012-10-10T12:29:00","Category": "#Twitter
tweetsssssss","Body":"ElasticSearch is Awesome"}'
I have tried using the Type:Phrase, and Also "Term":"Twitter "but this dint
work.
curl -XGET 'http://localhost:9200/Index/Type/_search?pretty=true' -d
'{"query":{"match":{"_all":{"query":""Elastic
Search"","type":"phrase"}}}}'
for example in the below 3 json docs how can I search for the word
"#Twitter" which should bring only doc1 and doc2,
"Twitter" - only doc3
"Elastic Search" as one single word - only in doc1
{"Name": "Doc1","postDate": "2012-10-10T12:29:00","Category": "#Twitter
messages ","Body":"this is a sample Elastic Search"}'
{"Name": "Doc2","postDate": "2012-10-10T12:29:00","Category": "#Twitter
tweetsssssss","Body":"Elasticsearch is Awesome"}'
I have tried using the Type:Phrase, and Also "Term":"Twitter "but this
dint work.
curl -XGET 'http://localhost:9200/Index/Type/_search?pretty=true' -d
'{"query":{"match":{"_all":{"query":""Elastic
Search"","type":"phrase"}}}}'
for example in the below 3 json docs how can I search for the word
"#Twitter" which should bring only doc1 and doc2,
"Twitter" - only doc3
"Elastic Search" as one single word - only in doc1
{"Name": "Doc1","postDate": "2012-10-10T12:29:00","Category": "#Twitter
messages ","Body":"this is a sample Elastic Search"}'
{"Name": "Doc2","postDate": "2012-10-10T12:29:00","Category": "#Twitter
tweetsssssss","Body":"Elasticsearch is Awesome"}'
I have tried using the Type:Phrase, and Also "Term":"Twitter "but this dint
work.
curl -XGET 'http://localhost:9200/Index/Type/_search?pretty=true' -d
'{"query":{"match":{"_all":{"query":""Elastic Search"","type":"phrase"}}}}'
for example in the below 3 json docs how can I search for the word
"#Twitter" which should bring only doc1 and doc2,
"Twitter" - only doc3
"Elastic Search" as one single word - only in doc1
{"Name": "Doc1","postDate": "2012-10-10T12:29:00","Category": "#Twitter
messages ","Body":"this is a sample Elastic Search"}'
{"Name": "Doc2","postDate": "2012-10-10T12:29:00","Category": "#Twitter
tweetsssssss","Body":"Elasticsearch is Awesome"}'
I have tried using the Type:Phrase, and Also "Term":"Twitter "but this
dint work.
curl -XGET 'http://localhost:9200/Index/Type/_search?pretty=true' -d
'{"query":{"match":{"_all":{"query":""Elastic
Search"","type":"phrase"}}}}'
for example in the below 3 json docs how can I search for the word
"#Twitter" which should bring only doc1 and doc2,
"Twitter" - only doc3
"Elastic Search" as one single word - only in doc1
{"Name": "Doc1","postDate": "2012-10-10T12:29:00","Category": "#Twitter
messages ","Body":"this is a sample Elastic Search"}'
{"Name": "Doc2","postDate": "2012-10-10T12:29:00","Category": "#Twitter
tweetsssssss","Body":"Elasticsearch is Awesome"}'
I have tried using the Type:Phrase, and Also "Term":"Twitter "but this
dint work.
curl -XGET 'http://localhost:9200/Index/Type/_search?pretty=true' -d
'{"query":{"match":{"_all":{"query":""Elastic
Search"","type":"phrase"}}}}'
for example in the below 3 json docs how can I search for the word
"#Twitter" which should bring only doc1 and doc2,
"Twitter" - only doc3
"Elastic Search" as one single word - only in doc1
{"Name": "Doc1","postDate": "2012-10-10T12:29:00","Category": "#Twitter
messages ","Body":"this is a sample Elastic Search"}'
{"Name": "Doc2","postDate": "2012-10-10T12:29:00","Category": "#Twitter
tweetsssssss","Body":"Elasticsearch is Awesome"}'
I have tried using the Type:Phrase, and Also "Term":"Twitter "but this
dint work.
curl -XGET 'http://localhost:9200/Index/Type/_search?pretty=true' -d
'{"query":{"match":{"_all":{"query":""Elastic
Search"","type":"phrase"}}}}'
for example in the below 3 json docs how can I search for the word
"#Twitter" which should bring only doc1 and doc2,
"Twitter" - only doc3
"Elastic Search" as one single word - only in doc1
{"Name": "Doc1","postDate": "2012-10-10T12:29:00","Category": "#Twitter
messages ","Body":"this is a sample Elastic Search"}'
{"Name": "Doc2","postDate": "2012-10-10T12:29:00","Category": "#Twitter
tweetsssssss","Body":"Elasticsearch is Awesome"}'
I have tried using the Type:Phrase, and Also "Term":"Twitter "but this
dint work.
curl -XGET 'http://localhost:9200/Index/Type/_search?pretty=true' -d
'{"query":{"match":{"_all":{"query":""Elastic
Search"","type":"phrase"}}}}'
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.