remedialaction != "remedial action"? Show us your query. Show a small self-contained sample program or test case that demonstrates the problem. You need to give us something more to go on.
-- Ian. On Tue, Aug 13, 2013 at 11:13 AM, Ankit Murarka <ankit.mura...@rancoretech.com> wrote: > Hello, > I am aware of that link and I have been through that link many > number of times. > > Problem I have is: > > 1. Each line is indexed. So indexed line looks something like "<attribute > name="remedial action" value="Checking"/>\" > 2. I am easily firing a phrase query on this line. It suggest me the > possible values. No problem,. > 3. If I fire a Boolean Query with "remedialaction" and "Checking" as a > must/must , then it is not providing me this document as a hit. > 4. I am using StandardAnalyzer both during the indexing and searching time. > > > On 8/13/2013 2:31 PM, Ian Lea wrote: >> >> Should be straightforward enough. Work through the tips in the FAQ >> entry at >> http://wiki.apache.org/lucene-java/LuceneFAQ#Why_am_I_getting_no_hits_.2F_incorrect_hits.3F >> and post back if that doesn't help, with details of how you are >> analyzing the data and how you are searching. >> >> >> -- >> Ian. >> >> >> On Tue, Aug 13, 2013 at 8:56 AM, Ankit Murarka >> <ankit.mura...@rancoretech.com> wrote: >> >>> >>> Hello All, >>> I have 2 different usecases. >>> I am trying to provide both boolean query and phrase search query in the >>> application. >>> >>> In every line of the document which I am indexing I have content like : >>> >>> <attribute name="remedial action" value="Checking"/>\ >>> >>> Due to the phrase search requirement, I am indexing each line of the file >>> as >>> a new document. >>> >>> Now when I am trying to do a phrase query (Did you Mean, Infix Analyzer >>> etc, >>> or phrase suggest) this seems to work fine and provide me with desired >>> suggestions. >>> >>> Problem is : >>> >>> How do I invoke boolean query for this. I mean when I verified the >>> indexes >>> in Luke, I saw the whole line as expected is indexed. >>> >>> So, if user wish to perform a boolean query say suppose containing >>> "remedialaction" and "Checking" how do I get this document as a hit. I >>> believe since I am indexing each line, this seems to be bit tricky. >>> >>> Please guide. >>> >>> -- >>> Regards >>> >>> Ankit >>> >>> >>> --------------------------------------------------------------------- >>> 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 >> >> >> > > > > -- > Regards > > Ankit Murarka > > "What lies behind us and what lies before us are tiny matters compared with > what lies within us" > > > --------------------------------------------------------------------- > 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