This does not work because FieldValueQuery requires that the field has doc
values, which is not the case on your field apparently.
Le jeu. 22 déc. 2016 à 17:50, Roxana Danger
a écrit :
> Hi all,
>
> I have created an index using solr. I am trying to execute the following
> code, but I get zero r
Hi all,
I have created an index using solr. I am trying to execute the following
code, but I get zero results in the count.
DirectoryReader dr = DirectoryReader.open(FSDirectory.open(new
File(indexDir).toPath()));
IndexSearcher searcher = new IndexSearcher( dr );
System.out.println(dr.maxDoc());