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

Support for Regex in Text Search second pass

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Text Search
    • Labels:
      None

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: