Lucene - Core
  1. Lucene - Core
  2. LUCENE-4040

Improve QueryParser and supported syntax documentation


    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: modules/queryparser
    • Labels:
    • Lucene Fields:


      In LUCENE-4024 there were some changes to the fuzzy query syntax. Only the Classic QueryParser really documents its syntax, which makes it hard to know whether the changes effected other QPs. Compounding this issue there are many classes which have no javadocs at all and I found myself quite confused when I consolidated all the QPs into their module.

      We should do a concerted effort to improve the documentation so that it is clear what syntax is supported by what QPs and so that at least the user facing classes have javadocs.

      As part of this, I wonder whether we should give the syntax supported by the Classic QueryParser a new name (rather than just Lucene's query syntax) since other QPs can and do support other syntax, and then somehow add some typed control over this, so QPs have to declare programmatically that they support the syntax and so we can verify that by randomly plugging in implementations into tests.

      1. LUCENE-4040.patch
        2 kB
        Mike Sokolov
      2. LUCENE-4040.patch
        2 kB
        Mike Sokolov


        No work has yet been logged on this issue.


          • Assignee:
            Chris Male
          • Votes:
            2 Vote for this issue
            1 Start watching this issue


            • Created: