ES as a simple keyword search engine

Hi All,

A quick question.
Can I just query keywords (eg. "AI" "Intelligence") and get result list?
It looks like ES kindly returns results based on matching score by default.
I want to use ES just as keywords search engine. (I don't need "guessing".)

Maybe,,,, is this just a sorting issue?

Many thanks in advance for your help,
Sato

Elasticsearch doesn't guess, it provides relative results.

It's not clear what you are looking for here, are you able to elaborate?

Thank you very much for an update.

When I perform a query with multiple keywords such as "AI Artificial Intelligence", the response contains documents which don't contain the searching words.
I'd like to understand why and know if I can control this behavior.

My guess is that ES sorts the response based on score with similarities to the searching words and, in some cases, it results in returning documents containing no searching words because of higher score calculated by lucene(?).
My goal in this case is just to search documents containing my searching keywords. In other words, I don't need documents if they don't contain my searching keywords.. :slight_smile:

Regards,

Can you give an example of a matching document which should not match?

What exact query do you run?
What is the full json response?

Also, have a read of https://www.elastic.co/guide/en/elasticsearch/guide/2.x/search.html

I figured out the cause!
I'm using ES python client and passing "keyword" between double quotation(") but the double quotation requires "escaped". I added backslash(¥) before " and everything works fine!!

Thank you very much for your help!!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.