Uploaded image for project: 'JIRA Server (including JIRA Core)'
  1. JIRA Server (including JIRA Core)
  2. JRASERVER-6218

Allow searching for part of a word (prefix / substring searches)

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Resolved (View Workflow)
    • Resolution: Won't Fix
    • Affects Version/s: 1.4, 1.4.1, 1.4.2, 1.4.3, 2.0, 2.0.1, 2.0.2, 2.1 Pro, 2.1 Enterprise, 2.2 Pro, 2.2.1 Pro, 2.2 Enterprise, 2.3 Pro, 2.3 Enterprise, 2.4 Pro, 2.4 Enterprise, 2.4.1, 2.5 BETA, 2.5 Pro, 2.5 Enterprise, 2.5.1 Professional, 2.5.1 Enterprise, 2.5.2 Professional, 2.5.2 Enterprise, 2.5.3 Professional, 2.5.3 Enterprise, 2.6 Pro, 2.6 Enterprise, 2.6.1 Pro, 2.6.1 Enterprise, 3.0 Standard Beta, 3.0 Professional Beta, 3.0 Enterprise Beta, 3.0, 3.0.1, 3.0.2, 3.0.3, 3.1, 3.1.1, 3.2 Beta, 3.2, 3.2.1, 3.2.2, 3.2.3, 3.3 Beta1, 3.3, 3.3.1, 3.3.2, 3.3.3, 3.4 Beta 1, 3.4, 3.4.1, 3.4.2, 3.4.3, 3.5, 3.5.1, 3.5.2, 3.5.3, 3.6, 3.6.1, 3.6.2, 3.6.3, 3.6.4, 3.6.5, 3.7 Beta 1, 3.7 Beta 2 , 3.7, 3.7 Issue Views, 3.7.1, 3.7.2, 3.7.3, 3.7.4, 3.8, 3.8.1, 3.9, 6.2
    • Fix Version/s: None
    • Feedback Policy:
      We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see An updated workflow for server feature suggestions.

      Description

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      Lucene doesn't support prefix search.

      We have created some issues with following titles:

      • "ComponentComboBox"
      • "TableComboBox"
      • "DateComboBox"
      • "JXComboBox"

      these words also occur in attached commented and file attachments with java source code
      In our projects we need to search for the word "ComboBox" or "Box" or just "box", but it does not retrieve the issues mentioned above.

      Is it possible to extend JIRA search capabiltiy with a simple search plugin, which returns results like String's indexOf ? Of course, this will result in neg. performance issues.
      But I think, this way of searching is practical for us, when searching for more abstract words / partialparts of words in jira/confluence.

      Cause

      We use lucene as for our search engine. I did some research and it looks like Lucene starting at version 2.1 does support leading wild cards. You can see here via Apache's FAQ. We don't currently use this function. As you can see even Apache mentions it's an expensive operation.

      Work Around

      We recommend Script Runner a third party add on (Add is no longer free) . Script Runner really beefs up JQL as you can use regex with script runner.

      For example: issueFunction in issueFieldMatch("project = JRA", "description", "ABC\\d{4}").  

      See more on IssueFieldMatch here.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                asdq Steve Varghese
              • Votes:
                227 Vote for this issue
                Watchers:
                173 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: