termQuery doesn't support string only contains letters?

Hi all,
I'm writing a Java program using Transport client to connect to
elasticsearch server. I created an index with field "event" and I
provided two value "0000" and "desc". It seems that each time I use
termQuery to search for "0000", I can find the result. But if I use
termQuery to search for "desc", I can not find anything. I'm using the
latest JDK and windows 7 32-bit. I also use elasticsearch 0.16.2.

Thanks for your attention and look forward to your reply.

After searching for the group, it seems that TextQueryBuilder meets my
requirement.

On Jun 10, 3:28 pm, kun niu haoniu...@gmail.com wrote:

Hi all,
I'm writing a Java program using Transport client to connect to
elasticsearch server. I created an index with field "event" and I
provided two value "0000" and "desc". It seems that each time I use
termQuery to search for "0000", I can find the result. But if I use
termQuery to search for "desc", I can not find anything. I'm using the
latest JDK and windows 7 32-bit. I also use elasticsearch 0.16.2.

Thanks for your attention and look forward to your reply.