Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-9153

Lucene Query parser append space if query length is greater than 255

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 8.5
    • None
    • None
    • New

    Description

      Hello Everyone
       
      I am working with Lucene 4.7.1
      When parsing query using Lucene query parser. If query length is greater than 255 bytes, it returns query with space appended after every 255 bytes, which is causing further issues in my project.
       
      Can you please let me know why the term (parsed query contain Arraylist<Term>) max length is 255 bytes. Why space is appended in between the query?
       
      I will really appreciate it if someone can help me with this.
      Do let me know if you have not understood my query and require some reference
       
      For analysis,  Please check QueryBuilder.java class which has method createFieldQuery(....) 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              akanksha88 Akanksha Jain
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m