Re: Query Boosting and sort
Sorry for late reply. Thanks Erick for the solution, you got my problem and the picture is right. I have resolved my problem with the similar approach you mentioned here. Regards, Renuka Srishti On Sat, Sep 9, 2017 at 11:45 PM, Erick Erickson wrote: > I'm a completely lost here. > > bq: "I have designed a screen where results are showing in tabular > form, in each column I have applied sorting( using Solr sort > parameter)" > > What does that mean? What is the relationship between columnA and > columnB in the same row? Are they from the same doc? Different docs? > What information is the user getting when they compare columnA and > columnB in the same row? What information is the user getting when > they compare columnA from row1 and row2? > > bq: "There is one keyword search box, in which I have applied the > phrase boosting to maintain relevancy.( Most relevant result will show > on the top). > > This seems like a totally unrelated statement. You "applied the phrase > boosting to maintain relevancy". What relationship does that have to > "in each column I have applied sorting"? > > --- > It _sounds_ like you have some kind of grid format where you have N > docs (rows) and M columns (fields). So each row (doc) has some fields > displayed. Now you want to sort results by different columns (I'm > thinking like a spreadsheet where you can sort by clicking the > different column heads). > > So assuming my mental picture is accurate, you have two choices: > > 1> you have the top N relevant documents that you want to display > differently depending on the column selected. When the user switches > columns you re-sort the top N docs. This is entirely an application > level sort. You do a single search that returns the top N docs by > relevance. When the user clicks on a column head you re-sort that > result set without going to Solr at all. > > 2> when the user clicks a column head, you want to display the top N > docs _from the entire index in sorted order_, which would be a new > Solr query with sort=column. > > Best, > Erick > > On Fri, Sep 8, 2017 at 9:50 PM, Renuka Srishti > wrote: > > Thanks Rick and Erick for your response. > > Here is the situation where I want to use both sort and phrase boosting: > > > >- I have designed a screen where results are showing in tabular form, > in > >each column I have applied sorting( using Solr sort parameter). There > is > >one keyword search box, in which I have applied the phrase boosting to > >maintain relevancy.( Most relevant result will show on the top). > > > > > >- Now If I applied keyword search and then I want to sort the result, > >how I can achieve this?(Sorting completely overrides scoring). > > > > Thanks > > > > Renuka Srishti > > > > On Sat, Sep 9, 2017 at 1:38 AM, Erick Erickson > > wrote: > > > >> Sorting completely overrides scoring. By specifying a sort parameter > >> you're effectively telling Solr that you don't care about scoring, > >> order the docs by the sort criteria. > >> > >> On Fri, Sep 8, 2017 at 3:35 AM, Rick Leir wrote: > >> > Renuka, > >> > > >> > You have not told us nearly enough about your issue. What query? > config? > >> > > >> > cheers -- Rick > >> > > >> > > >> > > >> > On 2017-09-08 05:42 AM, Renuka Srishti wrote: > >> >> > >> >> Hello All, > >> >> > >> >> I am trying to use sort parameter and phrase boosting together in > >> search. > >> >> But, if I use the sort parameter, it seems like Phrase Boosting does > not > >> >> work with it. > >> >> > >> >> Thanks > >> >> Renuka Srishti > >> >> > >> > > >> >
Re: Query Boosting and sort
I'm a completely lost here. bq: "I have designed a screen where results are showing in tabular form, in each column I have applied sorting( using Solr sort parameter)" What does that mean? What is the relationship between columnA and columnB in the same row? Are they from the same doc? Different docs? What information is the user getting when they compare columnA and columnB in the same row? What information is the user getting when they compare columnA from row1 and row2? bq: "There is one keyword search box, in which I have applied the phrase boosting to maintain relevancy.( Most relevant result will show on the top). This seems like a totally unrelated statement. You "applied the phrase boosting to maintain relevancy". What relationship does that have to "in each column I have applied sorting"? --- It _sounds_ like you have some kind of grid format where you have N docs (rows) and M columns (fields). So each row (doc) has some fields displayed. Now you want to sort results by different columns (I'm thinking like a spreadsheet where you can sort by clicking the different column heads). So assuming my mental picture is accurate, you have two choices: 1> you have the top N relevant documents that you want to display differently depending on the column selected. When the user switches columns you re-sort the top N docs. This is entirely an application level sort. You do a single search that returns the top N docs by relevance. When the user clicks on a column head you re-sort that result set without going to Solr at all. 2> when the user clicks a column head, you want to display the top N docs _from the entire index in sorted order_, which would be a new Solr query with sort=column. Best, Erick On Fri, Sep 8, 2017 at 9:50 PM, Renuka Srishti wrote: > Thanks Rick and Erick for your response. > Here is the situation where I want to use both sort and phrase boosting: > >- I have designed a screen where results are showing in tabular form, in >each column I have applied sorting( using Solr sort parameter). There is >one keyword search box, in which I have applied the phrase boosting to >maintain relevancy.( Most relevant result will show on the top). > > >- Now If I applied keyword search and then I want to sort the result, >how I can achieve this?(Sorting completely overrides scoring). > > Thanks > > Renuka Srishti > > On Sat, Sep 9, 2017 at 1:38 AM, Erick Erickson > wrote: > >> Sorting completely overrides scoring. By specifying a sort parameter >> you're effectively telling Solr that you don't care about scoring, >> order the docs by the sort criteria. >> >> On Fri, Sep 8, 2017 at 3:35 AM, Rick Leir wrote: >> > Renuka, >> > >> > You have not told us nearly enough about your issue. What query? config? >> > >> > cheers -- Rick >> > >> > >> > >> > On 2017-09-08 05:42 AM, Renuka Srishti wrote: >> >> >> >> Hello All, >> >> >> >> I am trying to use sort parameter and phrase boosting together in >> search. >> >> But, if I use the sort parameter, it seems like Phrase Boosting does not >> >> work with it. >> >> >> >> Thanks >> >> Renuka Srishti >> >> >> > >>
Re: Query Boosting and sort
Thanks Rick and Erick for your response. Here is the situation where I want to use both sort and phrase boosting: - I have designed a screen where results are showing in tabular form, in each column I have applied sorting( using Solr sort parameter). There is one keyword search box, in which I have applied the phrase boosting to maintain relevancy.( Most relevant result will show on the top). - Now If I applied keyword search and then I want to sort the result, how I can achieve this?(Sorting completely overrides scoring). Thanks Renuka Srishti On Sat, Sep 9, 2017 at 1:38 AM, Erick Erickson wrote: > Sorting completely overrides scoring. By specifying a sort parameter > you're effectively telling Solr that you don't care about scoring, > order the docs by the sort criteria. > > On Fri, Sep 8, 2017 at 3:35 AM, Rick Leir wrote: > > Renuka, > > > > You have not told us nearly enough about your issue. What query? config? > > > > cheers -- Rick > > > > > > > > On 2017-09-08 05:42 AM, Renuka Srishti wrote: > >> > >> Hello All, > >> > >> I am trying to use sort parameter and phrase boosting together in > search. > >> But, if I use the sort parameter, it seems like Phrase Boosting does not > >> work with it. > >> > >> Thanks > >> Renuka Srishti > >> > > >
Re: Query Boosting and sort
Sorting completely overrides scoring. By specifying a sort parameter you're effectively telling Solr that you don't care about scoring, order the docs by the sort criteria. On Fri, Sep 8, 2017 at 3:35 AM, Rick Leir wrote: > Renuka, > > You have not told us nearly enough about your issue. What query? config? > > cheers -- Rick > > > > On 2017-09-08 05:42 AM, Renuka Srishti wrote: >> >> Hello All, >> >> I am trying to use sort parameter and phrase boosting together in search. >> But, if I use the sort parameter, it seems like Phrase Boosting does not >> work with it. >> >> Thanks >> Renuka Srishti >> >
Re: Query Boosting and sort
Renuka, You have not told us nearly enough about your issue. What query? config? cheers -- Rick On 2017-09-08 05:42 AM, Renuka Srishti wrote: Hello All, I am trying to use sort parameter and phrase boosting together in search. But, if I use the sort parameter, it seems like Phrase Boosting does not work with it. Thanks Renuka Srishti
Query Boosting and sort
Hello All, I am trying to use sort parameter and phrase boosting together in search. But, if I use the sort parameter, it seems like Phrase Boosting does not work with it. Thanks Renuka Srishti