Term Query

Hi all,

         I am using standard analyzer for indexing and i search

using "term query".

I am getting the result for "test_001" but not for "test_sample".

I here mentioned the queries.

curl -XGET 'http://localhost:9200/dbtest/metadata/_search' -d
'{"query":{"term" : { "field1" : "test_001" }}}'

curl -XGET 'http://localhost:9200/dbtest/metadata/_search' -d
'{"query":{"term" : { "field1" : "test_sample" }}}'

Help me to move forward......

Hi Arulkumar

         I am using standard analyzer for indexing and i search

using "term query".

I am getting the result for "test_001" but not for "test_sample".

Have a read through this mailing list. This same question has been
answered several times within the last week

clint