lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Krupansky <jack.krupan...@gmail.com>
Subject Re: Boolean Search Query is not workng
Date Sat, 24 Jan 2015 11:34:31 GMT
The first term does not have a field name - was that intentional? If so,
what is your default field name, and which field names are populated in the
sample documents you provided?

You do need to look at the details of searcher "explain" to see how the
score is calculated. Sometimes the scores are too small and even 10 is too
small a boost. You may need 100 or even 1000, but it depends on the full
score calculation, what we call tf*idf (unless you have your own similarity
class.)

Also, what analyzer are you using? For example, does it include the lower
case filter, since some of your documents have different capitalization of
Java/java.


-- Jack Krupansky

On Fri, Jan 23, 2015 at 9:54 AM, Rajendra Rao <rajendra.rao@launchship.com>
wrote:

> Hello
> Reply to the mail, sent by Nitin We tried and this is what we got :
>
> My query was dotNet^10.0 Resume:jdbc Resume:C# Resume:MVC
>
> Documents:
> .1. java jdbc
> 2.Java dotNet
> 3.java jdbc apache
> 4.java dotNet
> 5.java
>          6java jdbc apache dotNet C# MVC
>          7.jakarta
> 8",apache
> 9.java jdbc apache dotNet C# MVC  tomcat;
>         10java jdbc apache dotNet",
>
> and result is doc id.1)  score :0.031800564  which is unexpected as
> weightage is given to Dotnet
>
> Thanks
>
>
>
>
> On Fri, Jan 23, 2015 at 4:34 PM, Ian Lea <ian.lea@gmail.com> wrote:
>
> > Use IndexSearcher.explain() to help figure out what matched, why.  And
> > watch out for typos: jakarta != jakarata.
> >
> > If you still can't figure it out, post here a very small completely
> > self-contained program or test case, using RAMDirectory, that
> > demonstrates the problem.
> >
> >
> > --
> > Ian.
> >
> >
> > On Fri, Jan 23, 2015 at 10:27 AM, Priyanka Tufchi
> > <priyanka.tufchi@launchship.com> wrote:
> > > Hi Ian
> > >
> > > I tried with what u sent
> > >
> > > Query-java~5 jakarta~5 apache  tomcat
> > > Document : "1", "java jakarta tomcat"
> > >  "2", java jakarata""
> > > "3", "java jakarta  apache"
> > >
> > >  Score  : 1 :0.27094576
> > > 3 :0.27094576
> > > 2 :0.010494952
> > >
> > >
> > > If we go  by query it is giving same score ..It is not working.
> > >
> > > Thanks
> > > Priyanka
> > >
> > >
> > > On Fri, Jan 23, 2015 at 3:19 PM, Ian Lea <ian.lea@gmail.com> wrote:
> > >
> > >> How about "home~10 house~10 flat". See
> > >> http://lucene.apache.org/core/4_10_3/queryparser/index.html
> > >>
> > >>
> > >> --
> > >> Ian.
> > >>
> > >>
> > >> On Fri, Jan 23, 2015 at 7:17 AM, Priyanka Tufchi
> > >> <priyanka.tufchi@launchship.com> wrote:
> > >> > 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 high weigh and flat
> > >> should
> > >> > get less then rest.
> > >> > If document contain "Home"  .Lucene search should not go for house
> > and
> > >> > flat.
> > >> >
> > >> > I searched on Internet for some good stuff but not able to find any
> > code
> > >> > sample or proper syntax for reference .
> > >> >
> > >> >
> > >> > Thanks
> > >> > Priyanka
> > >> >
> > >> > --
> > >> > Launchship Technology  respects your privacy. This email is intended
> > only
> > >> > for the use of the party to which it is addressed and may contain
> > >> > information that is privileged, confidential, or protected by law.
> If
> > you
> > >> > have received this message in error, or do not want to receive any
> > >> further
> > >> > emails from us, please notify us immediately by replying to the
> > message
> > >> and
> > >> > deleting it from your computer.
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> > >> For additional commands, e-mail: java-user-help@lucene.apache.org
> > >>
> > >>
> > >
> > > --
> > > Launchship Technology  respects your privacy. This email is intended
> only
> > > for the use of the party to which it is addressed and may contain
> > > information that is privileged, confidential, or protected by law. If
> you
> > > have received this message in error, or do not want to receive any
> > further
> > > emails from us, please notify us immediately by replying to the message
> > and
> > > deleting it from your computer.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-user-help@lucene.apache.org
> >
> >
>
> --
> Launchship Technology  respects your privacy. This email is intended only
> for the use of the party to which it is addressed and may contain
> information that is privileged, confidential, or protected by law. If you
> have received this message in error, or do not want to receive any further
> emails from us, please notify us immediately by replying to the message and
> deleting it from your computer.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message