RE: StandardQueryParser and numeric fields

2023-11-14 Thread Tony Schwartz
Perfect! Thank you very much! Exactly what I needed, and simple! Tony -Original Message- From: Uwe Schindler Sent: Tuesday, November 14, 2023 05:51 To: java-user@lucene.apache.org Subject: Re: StandardQueryParser and numeric fields Hi, By default the standard query parser has

Re: StandardQueryParser and numeric fields

2023-11-14 Thread Uwe Schindler
Hi, By default the standard query parser has no idea about field types (and it cannot because it does not know the schema of your index). If you want to allow searching in non-text fields (TextField, all other - also normal StringField breaks easy), you need to customize it. There are 2

StandardQueryParser and numeric fields

2023-11-13 Thread Tony Schwartz
Hello, I'm banging my head at this point, hoping someone can help me. I can't get StandardQueryParser to work on numeric fields. Luke v9.8.0 finds the records for me. Example search query string in Luke that works: eventIdNum:3001 Here is my code: Query initQuery() {