Re: problem executing a query using lucene directly

2016-12-23 Thread Roxana Danger
That's great!! I will test it and let you know. Roxana On 22 December 2016 at 21:58, Alan Woodward wrote: > Solr wraps its IndexReader in an UninvertingReader, which builds > doc-values structures in memory if required. If you include the solr jar > file on your classpath, you should be able t

Re: problem executing a query using lucene directly

2016-12-22 Thread Alan Woodward
Solr wraps its IndexReader in an UninvertingReader, which builds doc-values structures in memory if required. If you include the solr jar file on your classpath, you should be able to use UninvertingReader.wrap() to do something similar. Alan Woodward www.flax.co.uk > On 22 Dec 2016, at 17:5

Re: problem executing a query using lucene directly

2016-12-22 Thread Roxana Danger
Hi Alan, thank you very much, but I am not sure if this is the reason. but if I use the solrSearcher, FieldValueQuery works well, using the same index. If SolrIndexSearcher enable this feature, how does it do it? Thank you again! On 22 December 2016 at 17:34, Alan Woodward wrote: > Hi, > >

Re: problem executing a query using lucene directly

2016-12-22 Thread Alan Woodward
Hi, FieldValueQuery reports matches using docvalues, and it looks like they’re not enabled on that field. Alan Woodward www.flax.co.uk > On 22 Dec 2016, at 16:21, Roxana Danger > wrote: > > Hi all, > > I have created an index using solr. I am trying to execute the following > code, but I

Re: problem executing a query using lucene directly

2016-12-22 Thread Shawn Heisey
On 12/22/2016 9:21 AM, Roxana Danger wrote: > 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 IndexSea