[SERVER-14865] Support for Regex in Text Search second pass Created: 12/Aug/14  Updated: 10/Dec/14  Resolved: 12/Aug/14

Status: Closed
Project: Core Server
Component/s: Text Search
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: John Page Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-10227 Add regex support to FTS command/queries Backlog
Participants:

 Description   

In Full text Search (FTS) queries for phrases are not indexed but resolved, post-index using the following line.

return strcasestr( haystack.c_str(), phrase.c_str() ) != NULL;

This includes single word searches using "bob" "jim" to ensure an AND relationship. If we could change the above to support regex matches (it's a string to string match so not hard) then we can support wildcards, proximity and all sorts of other big boy free text search features.

I'd offer a patch but I doubt it would be up the standards required and unless I know it's going in it's not worth the effort.



 Comments   
Comment by J Rassi [ 12/Aug/14 ]

Resolving as dup of SERVER-10227. Leaving a follow-up comment there.

Generated at Thu Feb 08 03:36:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.