Re: Analyzer for supporting hyphenated words

2015-07-23 Thread Diego Socaceti
Hi Alessandro, after talking to our customer: Yes, it needs to be a mix of classic and quoted queries in one userCriteria. Before we look into the details of the QueryParser. I'm currently using org.apache.lucene.queryparser.classic.QueryParser of 5.2.1. Is this the right QueryParser to use? Th

Re: ignore a match in a query

2015-07-23 Thread Trejkaz
On Fri, Jul 24, 2015 at 2:53 AM, Fielder, Todd Patrick wrote: > Hi, > I'm wondering if there is a way to ignore a match in a query? For example, I > have two strings > > 1) "Record type: record" > > 2) "Record type: cd" > > I do not want the text "record type" to match, so searching fo

Re: [EXTERNAL] Re: ignore a match in a query

2015-07-23 Thread Xiaolong Zheng
It sounds like this "Record type" should be filter out from search database, or you can treat them as one token. 1st choice you can try write your own TokenFilter to peek the current word and next word, then remove this "Record type". 2nd choice you can group this ³Record type² a single token. T

RE: [EXTERNAL] Re: ignore a match in a query

2015-07-23 Thread Fielder, Todd Patrick
Unfortunately, that removes all records since all records have the term "Record type" -Original Message- From: Xiaolong Zheng [mailto:xiaolong.zh...@mathworks.com] Sent: Thursday, July 23, 2015 11:45 AM To: 'java-user@lucene.apache.org' Subject: [EXTERNAL] Re: ignore a match in a query

Re: ignore a match in a query

2015-07-23 Thread Xiaolong Zheng
Maybe you can use the phrase search like: NOT "\"Record type\"" On 7/23/15, 12:53 PM, "Fielder, Todd Patrick" wrote: >Hi, >I'm wondering if there is a way to ignore a match in a query? For >example, I have two strings > >1) "Record type: record" > >2) "Record type: cd" > >I

ignore a match in a query

2015-07-23 Thread Fielder, Todd Patrick
Hi, I'm wondering if there is a way to ignore a match in a query? For example, I have two strings 1) "Record type: record" 2) "Record type: cd" I do not want the text "record type" to match, so searching for the text "record" should return string 1 and not string 2. I can't say "NO

RE: Does Lucene 4.6.1 compatible with Java 8?

2015-07-23 Thread Mark Horninger
Xiaoling, I'm just a user of the Lucene (as Solr) and a newbie at that. I can't really speak on behalf of Lucene project, but I would start by looking at the Java 8 compatibliity guide available at http://www.oracle.com/technetwork/java/javase/8-compatibility-guide-2156366.html#A999387. There

Does Lucene 4.6.1 compatible with Java 8?

2015-07-23 Thread Xiaolong Zheng
We are currently planning to upgrade to Java 8, and we are using Lucene 4.6.1 right now. The release notes for Lucene 4.8 state that it is fully compatible with Java 8 (http://wiki.apache.org/lucene-java/ReleaseNote48). Does this mean that older releases of Lucene were not compatible, or just t