yathit / ydn-db-fulltext

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

Search issue when term does not contain words #10

Closed pirvudoru closed 9 years ago

pirvudoru commented 9 years ago

Hello,

I've encountered a problem when a search query looks something like: ",". As i see in https://github.com/yathit/ydn-db-fulltext/blob/master/src/storage.js#L227 the request is resolved with a "null". Is there a reason for it being like that ? I can't think of all possible scenarios, but if the "," is not included in the indexed tokens, can't the search return an empty result array instead of null ?

yathit commented 9 years ago

Yes, you are right. Fix will come soon.