Boolean Search Query is not workng

2015-01-22 Thread Priyanka Tufchi
Hi ALL I am working on a project which uses lucene for searching . I am struggling with boolean based Query : Actual Scenario is e.g In Query, if I give house home flat then inside It should search house or home or flat but I want to give them with weightage like house and home should get

Re: ToChildBlockJoinQuery question

2015-01-22 Thread Michael Sokolov
Great! Thanks for letting us know -Mike On 1/22/15 2:07 PM, McKinley, James T wrote: Hi Mike, I guess given the difficulty I've had getting the block join query to work it didn't occur to me to try and combine it in a BooleanQuery. :P Using the BJQ in a BooleanQuery with other TermQuerys w

RE: ToChildBlockJoinQuery question

2015-01-22 Thread McKinley, James T
Hi Mike, I guess given the difficulty I've had getting the block join query to work it didn't occur to me to try and combine it in a BooleanQuery. :P Using the BJQ in a BooleanQuery with other TermQuerys works fine and does exactly what I wanted! Thanks very much for your help! Jim

Re: ToChildBlockJoinQuery question

2015-01-22 Thread Michael Sokolov
I think the idea is that you create a blockjoinquery that encapsulates the join relation, and then you can create additional constraints in the result document space. In the case of ToChildBJQ, the result documents are child documents, so any additional query constraints will be applied to chil

RE: ToChildBlockJoinQuery question

2015-01-22 Thread McKinley, James T
Hi Greg, Thanks describing how block join queries were intended to work. Your description makes sense to me, however according to the API docs: http://lucene.apache.org/core/4_8_0/join/org/apache/lucene/search/join/ToChildBlockJoinQuery.html and particularly the naming of the parameters I don'

RE: Upgrade Lucene to latest version (4.0) from 2.4.0

2015-01-22 Thread Uwe Schindler
Hi, why do you try to configure the IndexWriter with outdated merge policies and lots of custom settings for buffering? I would start without any such settings and use IndexWriter with plain default settings. If I hit issues, then it may be useful to change merging and buffering settings. It lo

Re: ToChildBlockJoinQuery question

2015-01-22 Thread Michael Sokolov
Yeah I know -- we've been around this block before. I agree that the whole block indexing/searching feature is a bit confusing, trappy and error-prone, and it may be helpful to have those boundary conditions as signposts, but in my case relaxing the restriction enabled me to execute the querie

Re: ToChildBlockJoinQuery question

2015-01-22 Thread Gregory Dearing
Mike, I agree that it's not absolutely necessary to enforce children not being their own parent. I was just trying to describe the current implementation, and why you were seeing exceptions. The difference is mostly philosophical. The advantage of the current approach (in my opinion) is that it

Re: Upgrade Lucene to latest version (4.0) from 2.4.0

2015-01-22 Thread jaga_india
Hi Sai, hopes you have successfully migrated to 4.0 we also migrating from 2.4 to 4.10, but after updating to 4.10 it is taking more time than 2.4. I have posted a query , below is the link... help me. http://lucene.472066.n3.nabble.com/Multiple-CFS-files-are-generated-in-lucene-4-10-2-td417633