Open kou opened 5 months ago
We specify QUERY_NO_SYNTAX_ERROR but syntax error may be happen.
QUERY_NO_SYNTAX_ERROR
https://github.com/clear-code/redmine_full_text_search/blob/eaddeb17225f6dc19f839a37720ff8285cc13e76/lib/full_text_search/searcher.rb#L13
Because mroonga_query_expand()/pgroonga_query_expand() don't use the flag.
mroonga_query_expand()
pgroonga_query_expand()
https://github.com/clear-code/redmine_full_text_search/blob/eaddeb17225f6dc19f839a37720ff8285cc13e76/lib/full_text_search/mroonga.rb#L27
https://github.com/clear-code/redmine_full_text_search/blob/eaddeb17225f6dc19f839a37720ff8285cc13e76/lib/full_text_search/pgroonga.rb#L19
We should specify QUERY_NO_SYNTAX_ERROR flag for mroonga_query_expand()/pgroonga_query_expand() too.
We specify
QUERY_NO_SYNTAX_ERROR
but syntax error may be happen.https://github.com/clear-code/redmine_full_text_search/blob/eaddeb17225f6dc19f839a37720ff8285cc13e76/lib/full_text_search/searcher.rb#L13
Because
mroonga_query_expand()
/pgroonga_query_expand()
don't use the flag.https://github.com/clear-code/redmine_full_text_search/blob/eaddeb17225f6dc19f839a37720ff8285cc13e76/lib/full_text_search/mroonga.rb#L27
https://github.com/clear-code/redmine_full_text_search/blob/eaddeb17225f6dc19f839a37720ff8285cc13e76/lib/full_text_search/pgroonga.rb#L19
We should specify
QUERY_NO_SYNTAX_ERROR
flag formroonga_query_expand()
/pgroonga_query_expand()
too.