Lucene Query parser term Length

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view

Lucene Query parser term Length

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 some can help me with this. I  am stuck with
this for a very long time.

Do let me know if you have not understood my query.

For reference, please check class which has method

Akanksha Jain
Reply | Threaded
Open this post in threaded view

回复:Lucene Query parser term Length

4.7.1 is old version,why not use latest 8.4.1?

阿里巴巴 地图引擎核心算法工程师
邮箱:[hidden email]
阿里巴巴 企业主页
Information Security Notice: The information contained in this mail is solely property of the sender's organization.
This mail communication is confidential. Recipients named above are obligated to maintain secrecy and are not permitted to disclose the contents of this communication to others.
发件人:Akanksha<[hidden email]>
日 期:2020年01月20日 20:55:23
收件人:<[hidden email]>
主 题:Lucene Query parser term Length

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 some can help me with this. I  am stuck with
this for a very long time.

Do let me know if you have not understood my query.

For reference, please check class which has method

Akanksha Jain