Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.9.4, 3.0.3, 3.1, 3.2, 3.3, 3.4, 4.0-ALPHA
    • Fix Version/s: 3.5, 4.0-ALPHA
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      If 2-gram is used and the length of query string is 4, for example q="ABCD", QueryParser generates (when autoGeneratePhraseQueries is true) PhraseQuery("AB BC CD") with slop 0. But it can be optimized PhraseQuery("AB CD") with appropriate positions.

      The idea came from the Japanese paper "N.M-gram: Implementation of Inverted Index Using N-gram with Hash Values" by Mikio Hirabayashi, et al. (The main theme of the paper is different from the idea that I'm using here, though)

      1. LUCENE-3426.patch
        8 kB
        Koji Sekiguchi
      2. LUCENE-3426.patch
        8 kB
        Koji Sekiguchi
      3. PerfTest.java
        5 kB
        Koji Sekiguchi
      4. LUCENE-3426.patch
        7 kB
        Koji Sekiguchi
      5. LUCENE-3426.patch
        7 kB
        Koji Sekiguchi
      6. PerfTest.java
        5 kB
        Koji Sekiguchi
      7. LUCENE-3426.patch
        4 kB
        Koji Sekiguchi
      8. LUCENE-3426.patch
        2 kB
        Koji Sekiguchi

        Activity

        Koji Sekiguchi created issue -
        Koji Sekiguchi made changes -
        Field Original Value New Value
        Attachment LUCENE-3426.patch [ 12493910 ]
        Koji Sekiguchi made changes -
        Attachment LUCENE-3426.patch [ 12493934 ]
        Koji Sekiguchi made changes -
        Attachment PerfTest.java [ 12493940 ]
        Koji Sekiguchi made changes -
        Attachment LUCENE-3426.patch [ 12493977 ]
        Koji Sekiguchi made changes -
        Attachment LUCENE-3426.patch [ 12493980 ]
        Koji Sekiguchi made changes -
        Attachment PerfTest.java [ 12493981 ]
        Koji Sekiguchi made changes -
        Attachment LUCENE-3426.patch [ 12494258 ]
        Koji Sekiguchi made changes -
        Attachment LUCENE-3426.patch [ 12494342 ]
        Koji Sekiguchi made changes -
        Assignee Koji Sekiguchi [ koji ]
        Fix Version/s 3.5 [ 12317877 ]
        Fix Version/s 4.0 [ 12314025 ]
        Affects Version/s 3.3 [ 12316470 ]
        Affects Version/s 3.2 [ 12316070 ]
        Affects Version/s 3.1 [ 12314822 ]
        Affects Version/s 3.0.3 [ 12315147 ]
        Affects Version/s 2.9.4 [ 12315148 ]
        Affects Version/s 3.4 [ 12316675 ]
        Affects Version/s 4.0 [ 12314025 ]
        Koji Sekiguchi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Koji Sekiguchi
            Reporter:
            Koji Sekiguchi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development