Re: Lucene 6.1: number of hits per document

2016-08-31 Thread szzoli
I used: Analyzer analyzer = new StandardAnalyzer(); QueryParser parser = new QueryParser(field, analyzer); Query query = parser.parse(queryString); TermQuery cannot be created this way. Scorer.freq(), Collector.setScorer() how can be obtained?

RE: Lucene 6.1: number of hits per document

2016-08-31 Thread Uwe Schindler
Hi Mikhail, this was a Lucene question, so Solr request examples are not so useful for the user. The right keyword is to use IndexSearcher's explain functionality. Uwe - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Messag

Re: parent-child relationship in lucene - to avoid reindexing if parent information changes

2016-08-31 Thread Ralph Soika
Hi Kumaran, I don't think that this would take much time. If you just have stored the GroupID in your message and you query first all group-IDs where a specific user is member of, you can easily select in a next step all messages. We do something similar in our own project. 1) query - get al

LowerCaseFilter gone in 6.2.0

2016-08-31 Thread Markus Jelsma
Hello - i'm upgrading a project that uses Lucene to 6.2.0 and get the compile error that LowerCaseFilter does not exists. And, so it seems, the JavaDoc is gone too. I've checked CHANGES.txt and there is no mention of it, not even in the API changes section. Any ideas? Thanks, Markus https://l

RE: LowerCaseFilter gone in 6.2.0

2016-08-31 Thread Uwe Schindler
Hi Markus, I was a little bit (very big bit...) disappointed about this, too. The problem is caused by this: https://issues.apache.org/jira/browse/LUCENE-7318 Uwe - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message-

RE: LowerCaseFilter gone in 6.2.0

2016-08-31 Thread Markus Jelsma
Thanks for pointing to that issue. It also explains other errors. Markus -Original message- > From:Uwe Schindler > Sent: Wednesday 31st August 2016 11:32 > To: java-user@lucene.apache.org > Cc: 'Michael McCandless' > Subject: RE: LowerCaseFilter gone in 6.2.0 > > Hi Markus, > > I wa

RE: New type of proximity/fuzzy search

2016-08-31 Thread Allison, Timothy B.
Unfortunately, that does require a new type of query. As you probably know, you can do the "at least" (minimum number should match) with regular BooleanQueries, but you can't yet do the "at least" with SpanQuery. You might want to look at modifying the SpanOrQuery to get this functionality. I

RE: New type of proximity/fuzzy search

2016-08-31 Thread Allison, Timothy B.
Doh, sorry, Uwe, didn't see your response first. Scratch SpanOr, take a look at SpanNear. This would be a great capability to have! -Original Message- From: Allison, Timothy B. Sent: Wednesday, August 31, 2016 3:30 PM To: java-user@lucene.apache.org Subject: RE: New type of proximity/f