Getting Empty Results using NEST for ElasticSearch Getting Empty Results using NEST for ElasticSearch elasticsearch elasticsearch

Getting Empty Results using NEST for ElasticSearch


The issue is the term query being used. This will only match the exact text indexed. The term query is useful for id type searching.

If you are doing free text searching try using the match query for a good general purpose free text search. You can read more about it here on the official docs and hopefully start discovering how to build interesting and powerful queries by becoming familiar with the docs.

Good luck


It takes a very little time for the indexation of your Post. If you insert a Thread.Sleep(1000); between your indexation and your query, you'll have results.