Hi,
I had indexed two documents named "tweet" under "default" index. where
each tweet document has a property named "message" which contains two
different paragraphs that I got from some web site. After successfully
adding them to elastic search when try to query then using below code
snippet I do not get any result when I passwas or of in
queryString as my search terms but when I pass in or even is I get
both documents in result. All the search terms that I had mentioned
earlier exists in both documents could anyone please explain what is
the actual problem.
SearchResponse response = client.prepareSearch("default")
.setSearchType(SearchType.DFS_QUERY_THEN_FETCH)
.setQuery(QueryBuilders.queryString("was"))
.setFrom(0).setSize(60).setExplain(false)
.execute()
.actionGet();