回复:Lucene Query parser term Length

2020-01-20 Thread 陈志祥
e the contents of this communication to others. -- 发件人:Akanksha 日 期:2020年01月20日 20:55:23 收件人: 主 题:Lucene Query parser term Length Hello Everyone I am working with Lucene 4.7.1 When parsing query using Lucene query parser. If query l

Lucene Query parser term Length

2020-01-20 Thread 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

Re: Lucene Query Parser Special Characters

2016-10-14 Thread Ashley Ryan
The documentation I'm referencing is here: https://lucene.apache.org/core/4_5_1/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#package_description, with a note: org.apache.lucene.queryparser.flexible.standard

Re: Lucene Query Parser Special Characters

2016-10-13 Thread Trejkaz
On Fri, Oct 14, 2016 at 2:47 AM, Ashley Ryan wrote: > Obviously, our work around of escaping the angle brackets works as we need > it to, but it seems to me that your documentation is incorrect. Am I > misunderstanding the documentation or conflating the issue I'm seeing with > the topic of specia

Lucene Query Parser Special Characters

2016-10-13 Thread Ashley Ryan
Hi, I'm working on a project that uses the org.apache.lucene.queryparser.flexible.standard.parser.StandardSyntaxParser. I found in the documentation online that the list of special characters is as follows: + - && || ! ( ) { } [ ] ^ " ~ * ? : \ This list does not include angle brackets (< >) but

Re: Lucene Query Parser

2011-11-28 Thread Ian Lea
Just use one of the search() methods that does sorting and specify an array of sort fields with SortField.SCORE first, then your name fields. But be aware that complex real world textual queries and docs rarely produce identical scores. You could post-process the results and group them into "good

Lucene Query Parser

2011-11-28 Thread Romiko Derbynew
Hi Guys, I am using Lucene with Neo4j. Currently I have queries working well with a combination of Exact and Fuzzy matches in one query. However, we desire a report that first takes the ranking and boosting as the highest priority, but then we want to sort my first name and last name, and alwa

Re: Is the new Lucene Query parser framework compatibility with older lucene versions ?

2010-04-28 Thread kannan chandrasekaran
Hi Adriano, Ahhh !!! Good point...Thanks a ton for the quick response. Kannan From: Adriano Crestani To: java-user@lucene.apache.org Sent: Wed, April 28, 2010 7:31:20 PM Subject: Re: Is the new Lucene Query parser framework compatibility with older lucene

Re: Is the new Lucene Query parser framework compatibility with older lucene versions ?

2010-04-28 Thread Adriano Crestani
Hi Kannan, contrib-queryparser code is not compatible with 2.4 release because it uses the Attribute API, which was only introduced in 2.9. Regards, Adriano Crestani On Wed, Apr 28, 2010 at 8:44 PM, kannan chandrasekaran wrote: > Hi All, > > I have a question regarding the new Luc

Is the new Lucene Query parser framework compatibility with older lucene versions ?

2010-04-28 Thread kannan chandrasekaran
Hi All, I have a question regarding the new Lucene query parser framework in the contribs project. My company's project is running on top of 2.4.0 release of Lucene. I am trying to evaluate the new query parser framework that was added to the contribs project in the Lucene 2.9.0 re

Re: lucene query parser for double-worded term query

2008-06-24 Thread Chris Lu
eply! > > > > But I found after backslash escape spaces, both > > tags:San\ Francisco > > tags:"San\ Francisco" > > turns into PhraseQuery, just like tags:"San Francisco", still no results > > returned. > > > > Maybe Lucene Query

Re: lucene query parser for double-worded term query

2008-06-24 Thread Erick Erickson
o > tags:"San\ Francisco" > turns into PhraseQuery, just like tags:"San Francisco", still no results > returned. > > Maybe Lucene Query Parser does not handle this case? > > -- > Chris Lu > - > Instant Scalable

Re: lucene query parser for double-worded term query

2008-06-24 Thread Chris Lu
Yonik, Thanks for your quick reply! But I found after backslash escape spaces, both tags:San\ Francisco tags:"San\ Francisco" turns into PhraseQuery, just like tags:"San Francisco", still no results returned. Maybe Lucene Query Parser does not handle this

Re: lucene query parser for double-worded term query

2008-06-24 Thread Yonik Seeley
ach tag is analyzed into Keyword field like this > new Field("tags", "San Francisco",Field.Store.YES, > Field.Index.UN_TOKENIZED) > > It should be searchable if using TermQuery directly, like > new TermQuery(new Term("tags", "San Francisco"

lucene query parser for double-worded term query

2008-06-24 Thread Chris Lu
like new TermQuery(new Term("tags", "San Francisco")) But how to achieve this via Lucene Query Parser? If using tags:"San Francisco" It's considered a phrase, and turned into term search of tags:San and tags:Francisco, which will not return results. Thank