mgholam / RaptorDB-Document

NoSql, JSON based, Document store database with compiled .net map functions and automatic hybrid bitmap indexing and LINQ query filters (now with standalone Server mode, Backup and Active Restore, Transactions, Server side queries, MonoDroid support, HQ-Branch Replication, .net core v2.0, .net standard v2.0)
http://www.codeproject.com/Articles/375413/RaptorDB-the-Document-Store
MIT License
163 stars 39 forks source link

operation issue #6

Open witwall opened 8 years ago

witwall commented 8 years ago

"keyword1 keyword2" means keyword1 AND keyword2 "keyword1 keyword2 -keyword3" should means include both keyword1 and keyword2, but could not have keyword3, right? when I used this, I got the result only includes keywords3, just like I search with "keyword3" only.

mgholam commented 8 years ago

It seems to work correctly with the sample app and data, and yes it should include key1,key2 and exclude key3.

Make sure you are on the latest build.

witwall commented 8 years ago

sorry, wrong place, should be an issue of https://github.com/mgholam/hOOt

mgholam commented 8 years ago

Ah yes! hOOt needs some love, I'm trying to free some time for it.

witwall commented 8 years ago

I made a dirty solution to combine hOOt with RaptorDB-Document, with some modification. It works now and the bug was fixed.

but there is another issue, in old hOOt, punctuation will be ignored, but RaptorDB will keep the punctuation, so I have to replace punctuation with blank space before indexing.

I am wondering if change the code of not

 if (!(char.IsLetterOrDigit(c) || char.IsPunctuation(c) )) // rdb specific