yathit / ydn-db-fulltext

Full text search module for YDN-DB
30 stars 4 forks source link

implement exact phrase matching using quotes #2

Open dlee opened 10 years ago

dlee commented 10 years ago

If I search for American badger, I want results that contain American and badger anywhere.

If I search for "American badger", I want results that only contain the exact phrase American badger.

yathit commented 10 years ago

I though it was already implemented.

dlee commented 10 years ago

According to my tests, double quotes enforce exact matching for a single word, but not phrase matching. I can do "American" badger and it will find badgers but not Americana. However, enclosing the whole phrase in double quotes will behave like it didn't have double quotes at all.

yathit commented 10 years ago

Oh yes, I see. Push this issue into TODO.