Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.2, 2.7
    • Component/s: None
    • Labels:
      None

      Description

      I've came accross the well known behaviour of query results returning -1 when asked for getSize().

      While this is ok for optimization reasons (lazy results fetching), I just discovered that the default "resultFetchSize" value in lucene queries is Integer.MAX_VALUE, so in all queries I've ever executed, all results were actually fetched before asking for getSize, so IMHO nothing prevents getSize() to return the real value instead -1

        Activity

        Cédric Damioli created issue -
        Cédric Damioli made changes -
        Field Original Value New Value
        Attachment QueryResultImpl.java.patch [ 12539018 ]
        Cédric Damioli made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Cédric Damioli made changes -
        Fix Version/s 2.6 [ 12319480 ]
        Jukka Zitting made changes -
        Fix Version/s 2.5.3 [ 12323296 ]
        Fix Version/s 2.6 [ 12319480 ]
        Jukka Zitting made changes -
        Fix Version/s 2.5.3 [ 12323296 ]
        Cédric Damioli made changes -
        Attachment QueryResultImpl.java.patch [ 12539018 ]
        Cédric Damioli made changes -
        Attachment QueryResultImpl.patch [ 12568398 ]
        Cédric Damioli made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Assignee Cédric Damioli [ cedric ]
        Fix Version/s 2.7 [ 12323977 ]
        Resolution Fixed [ 1 ]
        Jukka Zitting made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Jukka Zitting made changes -
        Fix Version/s 2.6.2 [ 12324421 ]

          People

          • Assignee:
            Cédric Damioli
            Reporter:
            Cédric Damioli
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development