Details

    • Type: Improvement
    • Status: Closed
    • Priority: 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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: