You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by abhishek jain <ab...@gmail.com> on 2014/02/01 12:50:46 UTC

RE: Special character search in Solr and boosting without altering the resultset

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
> <ab...@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


Re: Special character search in Solr and boosting without altering the resultset

Posted by Jack Krupansky <ja...@basetechnology.com>.
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:iorixxx@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
> <ab...@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
> > <ab...@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 


RE: Special character search in Solr and boosting without altering the resultset

Posted by abhishek jain <ab...@gmail.com>.
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:iorixxx@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
> <ab...@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
> > <ab...@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


Re: Special character search in Solr and boosting without altering the resultset

Posted by Ahmet Arslan <io...@yahoo.com>.
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 <ab...@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
> <ab...@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