[ 
https://issues.apache.org/jira/browse/LUCENE-9153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17024194#comment-17024194
 ] 

ASF subversion and git services commented on LUCENE-9153:
---------------------------------------------------------

Commit 4bf883ddb8a4b372de35373a32bb9dc97018668f in lucene-solr's branch 
refs/heads/branch_8x from Alan Woodward
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=4bf883d ]

LUCENE-9153: Allow WhitespaceAnalyzer to set a custom maxTokenLen (#1198)

WhitespaceTokenizer defaults to a maximum token length of 255, and 
WhitespaceAnalyzer
does not allow this to be changed. This commit adds an optional maxTokenLen 
parameter
to WhitespaceAnalyzer as well, and documents the existing token length 
restriction.

> Lucene Query parser append space if query length is greater than 255
> --------------------------------------------------------------------
>
>                 Key: LUCENE-9153
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9153
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Akanksha Jain
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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(....) 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to