Hi!

I have a Solr-constructed index, which I read with this code:

Directory directory = FSDirectory.open(file);
IndexReader reader = IndexReader.open(directory, true);
IndexSearcher searcher = new IndexSearcher(reader);

I try to get a Scorer with this TermQuery ("lang" field is indexed
and stored and all data is available)

TermQuery atomQuery = new TermQuery(new Term("lang", "ru"));

Weight weight = atomQuery.createWeight(searcher);
Scorer scorer = weight.scorer(reader, true, false);



after this scorer is null.



Does anyone know, what could be the problem here?

I tried it with Solr. 3.4 and with Solr 3.5, results are the same.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to