I want to do a match query, and the query works fine in REST:
curl -XGET 'localhost:9200/search/video_search/_search?pretty' -d @query.
but I don't know how to do it in Java, my code below doesn't work:
MatchQueryBuilder queryBuilder = QueryBuilders.matchQuery("tvName", keyword)
the exception is : Unexpected end of block of data.
Cloud anybody help? Thanks very much.
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/86a21181-8007-4595-abc9-4b45f81b67a3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.