ToParentBlockJoinQuery query loop finitely

2012-03-22 Thread Li Li
hi all, I read these two articles http://blog.mikemccandless.com/2012/01/searching-relational-content-with.html, http://blog.mikemccandless.com/2012/01/tochildblockjoinquery-in-lucene.htmland wrote a test program. But it seems there is some problem. it ends with endless loop. Here is my pro

Combining Lucene Search Results and external Search

2012-03-22 Thread Marten Deinum
Hi All, We've inherited an application which indexes a lot of data, recently we added another source and indexing of this particular source takes about 2 to 3 weeks (which is a bit long). One of the main problems is that the only API we have to harvest and index the data from that source is a sear

Re: BlockJoinQuery Clarification

2012-03-22 Thread Michael McCandless
You have to replace all documents in the block (1 parent, 4 children in your example) to update any of the documents... only updating the child (or child + parent) will break the join... There's also query-time joining coming in 3.6.0. Mike McCandless http://blog.mikemccandless.com On Thu, Mar

BlockJoinQuery Clarification

2012-03-22 Thread kiwi clive
Hello I've been looking at the BlockJoinQuery in Lucene 3.4.0 and would like to clarify my understanding. Suppose we have a parent document that we index with (say) 4 child documents. My understanding is that these go in as an atomic unit and allows us to query and join across the documents.

Scoring similarity by the position of the terms

2012-03-22 Thread Thomas Rewig
Hi, a few years ago, I tested this tutorial: http://sujitpal.blogspot.de/2010/10/custom-scoring-with-lucene-payloads.html Here the search are based on scoring the similarity only by the positions of the terms. For this you have to write your own TokenFilter, Analyser, PayloadFunction and Simi