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

Reply via email to