q=+term1 term2^0.6
Will require term1 but term2 is optional.
-- Jack Krupansky
-----Original Message-----
From: abhishek jain
Sent: Saturday, February 1, 2014 10:27 AM
To: solr-user@lucene.apache.org ; 'Ahmet Arslan'
Subject: RE: Special character search in Solr and boosting without altering
the resultset
Hi,
Thanks for replying but if i understand right:
q=term1 term2^0.6 means it will search for term1 and term2 and somewhat less
boost to term2,
I want to search only for term1 and if the term2 exists boost by a positive
factor . I am not able to make such a query .
Thanks
Abhishek
-----Original Message-----
From: Ahmet Arslan [mailto:iori...@yahoo.com]
Sent: Saturday, February 1, 2014 8:51 PM
To: solr-user@lucene.apache.org
Subject: Re: Special character search in Solr and boosting without
altering the resultset
Hi,
Can you elaborate your boosting requirement? There is a carat operator
to boost query terms.
for example : q=term1 term2^0.6
On Saturday, February 1, 2014 1:51 PM, abhishek jain
<abhishek.netj...@gmail.com> wrote:
Hi,
Ok thanks, will look more into it,
Any info on boosting without altering the resultset?
Thanks
Abhishek
> -----Original Message-----
>
> Hi Abhishek,
>
> dot is not a special character. Your field type / analyzer is
> stripping that character. Please see similar discussions and
> alternative solutions.
>
> http://search-lucene.com/m/6dbI9zMSob1
> http://search-lucene.com/m/Ac71G0KlGz
> http://search-lucene.com/m/RRD2D1p1mi
>
> Ahmet
>
>
>
> On Friday, January 31, 2014 8:23 PM, abhishek jain
> <abhishek.netj...@gmail.com> wrote:
> Hi friends,
>
> I am facing a strange problem, When I search a term eg .Net ,
> the solr searches for Net and not includes '.'
>
> Is dot a special character in Solr? I tried escaping it with
backslash
> in the url call to solr, but no use same resultset,
>
>
>
> Also , is there a way to boost some terms within a resultset.
>
> I mean I want to boost a term within a result and I don't want to
fire
> a separate query. I couldn't use OR operator as it will modify the
> resultset.
> I want to use a single query and boost. I don't want to use dismax
> query as well,
>
>
>
> Please advice.
>
>
>
> Thanks,
>
> Abhishek