Re: Recommendation for doing a search plus collecting extra information?

2015-10-11 Thread Alan Woodward
Hi Trejkaz, You can still use a standard collector if you don’t need to worry about multi-threaded search. It sounds as though what you want to do is implement your own Collector that will read and record docvalues hits, and use MultiCollector to wrap it and a standard TopDocsCollector togethe

Re: Recommendation for doing a search plus collecting extra information?

2015-10-11 Thread Trejkaz
On Mon, Oct 12, 2015 at 6:32 AM, Alan Woodward wrote: > Hi Trejkaz, > > You can still use a standard collector if you don’t need to worry about > multi-threaded search. It sounds > as though what you want to do is implement your own Collector that will read > and record docvalues hits, > and us

RE: Recommendation for doing a search plus collecting extra information?

2015-10-11 Thread Uwe Schindler
Hi, it may sound a bit stupid, but you can do the following: If you search for a docvalues (previously fieldcache) field in lucene, the returned TopFieldDocs contains also the field values that were sorted against. The ScoreDoc instances in this collection are actually FieldDoc instances (cast

RE: Recommendation for doing a search plus collecting extra information?

2015-10-11 Thread Uwe Schindler
> If you search for a docvalues (previously fieldcache) field in lucene, the I meant "sort" not "search" :-) Uwe - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@

Re: Having some trouble running tests with custom codec

2015-10-11 Thread Duke DAI
How about add line feed for the single line? It seems I have the impression that line feed is required. Best regards, Duke If not now, when? If not me, who? On Fri, Oct 9, 2015 at 10:07 PM, Sigbjørn Lund Olsen < sigbjorn.lund.ol...@gmail.com> wrote: > As part of my master's thesis I am planning

RE: Having some trouble running tests with custom codec

2015-10-11 Thread Uwe Schindler
Hi, adding the codec JAR to the ANT classpath does not help, as it is not part of the test classpath: > Running *ant -Dtestcase=TestSegmentTermDocs -Dtests.codec=HelloCodec > -lib > /path/to/hello-1.0.jar* test gives me the following error: > * -lib cannot work as it just adds your JAR to ant's