Hello Michael,

We tried the sample of code but the value of   "hits"   we are getting
is null. We tried to search on net but no proper sample example given
which can help us to understand. We attached our code with mail
.please it would be great if you can give a look to our code.

Thanks.

On Wed, Jan 29, 2014 at 3:15 AM, Priyanka Tufchi
<priyanka.tuf...@launchship.com> wrote:
> Hello Michael,
>
> In the example given in your blog   in following line there is error
>
>   searcher.search(query, c);
>
> whether it should convert in IndexSearcher
>
> there is no explanation given for document addition in blog example ?
> Can you please provide helping hand.
>
> Thanks.
>
>
>
> On Wed, Jan 29, 2014 at 2:59 AM, Michael McCandless
> <luc...@mikemccandless.com> wrote:
>> Actually, the blog post should still apply: just insert ToParent to
>> rename things.
>>
>> ToChildBlockJoinQuery is the same idea, but it joins in the reverse
>> direction, so e.g. if your index has CDs (parent docs) and individual
>> songs on those CDs (child docs), you can take a parent-level
>> constraint (e.g. maybe price < $12) and join it down to child level
>> constraints (maybe a query against the song's title) and then see
>> individual songs (not albums) as the returned hits.
>>
>> Mike McCandless
>>
>> http://blog.mikemccandless.com
>>
>>
>> On Wed, Jan 29, 2014 at 5:44 AM, Priyanka Tufchi
>> <priyanka.tuf...@launchship.com> wrote:
>>> Hello Michael,
>>>
>>> Can i get code snippet for this new classes: ToParentBlockJoinQuery,
>>> ToChildBlockJoinQuery
>>> and how to use it.
>>>
>>> thanks
>>>
>>> On Wed, Jan 29, 2014 at 2:22 AM, Michael McCandless
>>> <luc...@mikemccandless.com> wrote:
>>>> Sorry, BlockJoinQuery was split into two separate classes:
>>>> ToParentBlockJoinQuery, ToChildBlockJoinQuery.
>>>>
>>>> Mike McCandless
>>>>
>>>> http://blog.mikemccandless.com
>>>>
>>>>
>>>> On Wed, Jan 29, 2014 at 4:32 AM, Priyanka Tufchi
>>>> <priyanka.tuf...@launchship.com> wrote:
>>>>> Subject: BlockJoinQuery is missing in lucene-4.1.0 .
>>>>> To: java-user@lucene.apache.org
>>>>>
>>>>>
>>>>> Hello ,
>>>>>
>>>>>  I want to  Search relational content  which has parent child
>>>>> relationship . I am following below link
>>>>>
>>>>> http://blog.mikemccandless.com/2012/01/searching-relational-content-with.html
>>>>>
>>>>> but got problem in following line
>>>>>
>>>>>  BlockJoinQuery skuJoinQuery = new BlockJoinQuery(
>>>>>     skuQuery,
>>>>>     shirts,  ScoreMode.None);
>>>>>
>>>>> where is "BlockJoinQuery " class in lucene-4.1.0 ? It has been
>>>>> removed or some other alternative way is in  this version.
>>>>>
>>>>> Thanks in advance.
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
>>>>> For additional commands, e-mail: java-user-h...@lucene.apache.org
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
>>>> For additional commands, e-mail: java-user-h...@lucene.apache.org
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
>>> For additional commands, e-mail: java-user-h...@lucene.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
>> For additional commands, e-mail: java-user-h...@lucene.apache.org
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to