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

Akanksha
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 QueryBuilder.java class which has method
createFieldQuery(....)

Regards
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?





陈志祥
阿里巴巴 地图引擎核心算法工程师
电话:057128223456-81124100
邮箱:[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 QueryBuilder.java class which has method
createFieldQuery(....)

Regards
Akanksha Jain