Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-14865

Support for Regex in Text Search second pass

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Text Search
    • None

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            john.page@mongodb.com John Page
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: