Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: core/queryparser
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      It seems like there really should be QueryParser support for MatchAllDocsQuery.
      I propose : (brings back memories of DOS

        Activity

        Hide
        yseeley@gmail.com Yonik Seeley added a comment -

        Committed.

        Show
        yseeley@gmail.com Yonik Seeley added a comment - Committed.
        Hide
        yseeley@gmail.com Yonik Seeley added a comment -

        Here's the patch.... : means MatchAllDocsQuery

        Since it required a grammar change I made it allow "*" as a fieldname (so one could do *:foo).
        This allows one to come up with a specialized syntax for searching across multiple fields by simply subclassing QueryParser methods.

        Show
        yseeley@gmail.com Yonik Seeley added a comment - Here's the patch.... : means MatchAllDocsQuery Since it required a grammar change I made it allow "*" as a fieldname (so one could do *:foo). This allows one to come up with a specialized syntax for searching across multiple fields by simply subclassing QueryParser methods.
        Hide
        manawiz Chuck Williams added a comment -

        +1

        With this could also come negative-only queries, e.g.

        -foo

        as a shortcut for

        : -foo

        Show
        manawiz Chuck Williams added a comment - +1 With this could also come negative-only queries, e.g. -foo as a shortcut for : -foo

          People

          • Assignee:
            yseeley@gmail.com Yonik Seeley
            Reporter:
            yseeley@gmail.com Yonik Seeley
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development