基本的に2つの質問があります。
1. mysql のように全文ブール検索を行う C++ ライブラリはありますか。たとえば、
私が持っているとしましょう:
string text = "this is my phrase keywords test with boolean query.";
string booleanQuery = "\"my phrase\" boolean -test -\"keywords test\" OR ";
booleanQuery += "\"boolean search\" -mysql -sql -java -php"b
//where quotes ("") contain phrases, (-) is NOT keyword and OR is logical OR.
最初の答えが「いいえ」の場合は、次のようになります。
2. テキスト内の語句を検索することはできますか。例えば、
string text =//same as previous
string keyword = "\"my phrase\"";
//here what's the best way to search for my phrase in the text?