More questions on BlockJoinQuery

2013-02-11 Thread Chris Bamford
Hi Mike, I have a question about your post "Searching relational content with Lucene's BlockJoinQuery" (http://blog.mikemccandless.com/2012/01/searching-relational-content-with.html). I am actually trying to use Lucene 4.0.0, so am having to translate your example to the newer ToParentBlockJo

答复: About the Sorting of Groups during Grouping by

2013-02-11 Thread Oliver Xu
Right. I understand that the TermFirstPassGroupingCollector is extended from Collector class too. Let me try. Many thanks to you! -邮件原件- 发件人: martijn.is.h...@gmail.com [mailto:martijn.is.h...@gmail.com] 代表 Martijn v Groningen 发送时间: 2013年2月11日 19:29 收件人: java-user@lucene.apache.org 主题: Re:

Re: Optimal way to index

2013-02-11 Thread Mohammad Tariq
Hey Ian. Thank you so much for the quick reply. I'll definitely give Lucene a shot. I'll start off with it and get back to you in case of any problem. Many thanks. Warm Regards, Tariq https://mtariq.jux.com/ cloudfront.blogspot.com On Mon, Feb 11, 2013 at 10:03 PM, Ian Lea wrote: > You can ce

Re: Optimal way to index

2013-02-11 Thread Ian Lea
You can certainly use lucene for this, and it will be blindingly fast even if you use a disk based index. Just index documents as you've laid it out, with the field you want to search on added as indexable and the others stored. I've never used Guava Table so can't comment on that, but with only

Usage of ToParentBlockJoinCollector

2013-02-11 Thread Chris Bamford
Hi Can anyone explain to me how to use ToParentBlockJoinCollector in Lucene 4.0.0? I can successfully query with a ToParentBlockJoinQuery, but the results come back are not grouped by parent doc. I believe that ToParentBlockJoinCollector is the way to go, but I cannot make it work. Is there s

Re: Strange behavior of term queries with StoredFields - 4.1

2013-02-11 Thread Ian Lea
Yes, that looks fine. As far as I'm aware the compression is low level and transparent to user code. -- Ian. On Mon, Feb 11, 2013 at 2:59 PM, Ramprakash Ramamoorthy wrote: > On Mon, Feb 11, 2013 at 7:10 PM, Ian Lea wrote: > >> StoredField does indeed only store the field, not index it. >> Ma

Re: Strange behavior of term queries with StoredFields - 4.1

2013-02-11 Thread Ramprakash Ramamoorthy
On Mon, Feb 11, 2013 at 7:10 PM, Ian Lea wrote: > StoredField does indeed only store the field, not index it. > MatchAllDocs will find it because, by definition, it matches all docs. > But other queries won't. > That was pretty clear Ian. Thanks a lot. > > Not sure what you mean when you say y

About the Sorting of Groups during Grouping by

2013-02-11 Thread Oliver Xu (Aigine Co)
Dear List, I've made through the demo code for grouping search using TermFirstPassGroupingCollector and TermSecondPassGroupingCollector. However, the sorting of resulted groups is determined by the scores of the top-one documents in each group. ( Everyone of these documents has the highest sco

Re: Strange behavior of term queries with StoredFields - 4.1

2013-02-11 Thread Ian Lea
StoredField does indeed only store the field, not index it. MatchAllDocs will find it because, by definition, it matches all docs. But other queries won't. Not sure what you mean when you say you are particular about stored fields. If you need to get it back from the index, store it. If you don