New to the Elastic search, Below is what i am trying to achieve where anything that relatively matches with an query string should return the result
Creating sample Indexes like below
curl -XPUT 'http://localhost:9200/prj1/mod/java' -d '{
"project_name": "Java_SE"
}'
curl -XPUT 'http://localhost:9200/prj1/mod/java2Ed' -d '{
"project_name": "Java 2 Edition"
}'
curl -XPUT 'http://localhost:9200/prj1/mod/javaee' -d '{
"project_name": "Java_EE"
}'
When searching
curl -XGET 'http://localhost:9200/prj1/mod/_search' -d '{"query" : {"match" : {"project_name" : "Java"}}}'
Returns below results
{"took":6,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":0.15342641,"hits":[{"_index":"prj1","_type":"mod","_id":"java2Ed","_score":0.15342641,"_source":{
"project_name": "Java 2 Edition"
}}]}}
It does not return all the Projects with the name like "Java_SE", "Java 2 Edition" and "Java_EE".
need to get everything where it finds with match text "example" I could be have data like this in my text as well
This is an example_code This example:11 is good Example you are looking for is not available.
What is that i m doing wrong here.