Re: how to write this SOLR query in LUCENE api?

2015-09-17 Thread Trejkaz
On Fri, Sep 18, 2015 at 1:14 AM, Ziqi Zhang wrote: => > So my question is, how can I achieve the same by using the Lucene API, not > solr? I looked into the org.apache.solr.handler.component.TermsComponent > class but it is not very obvious for me. org.apache.lucene.search.RegexpQuery. Or, if yo

Question related to reranking and RankQuery

2015-09-17 Thread Ajinkya Kale
Hi all, I am new to Solr. I have a QParser plugin which uses an implementation of CustomScoreQuery to provide custom score for each document. Is there a way I can use the same plugin to provide score for top N documents after an initial query/sort ? I looked at the ReRankQParserPlugin but it looks

how to write this SOLR query in LUCENE api?

2015-09-17 Thread Ziqi Zhang
Hi I am using the TermsComponent in my solr config like this to deal with queries about terms in the index: -- true false terms --- For example, I want to fetch any *terms* containing "surface defects". Using solr I can d

Opening Lucene's 4.3 index with Lucene 5.3

2015-09-17 Thread Jarus
Hi While trying to open Lucene's 4.3 index with Lucene 5.3; I get the following error: java.nio.file.NoSuchFileException: 1441701798/_by.cfs at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.ja