Re: Position of Document in Listing (Search Result)

2015-09-07 Thread Shayan Haque
Sure, An example query with sorting and all would be something like as follow. http://192.168.21.34/solr/idx_pub/select?q=bump:true^100 featured:true^10 (*:*)^1&fq=make_search:honda&fq=model_search:beat&fq=price:[* TO *]&fq=price_drop:[* TO *]&fq=price_drop_percentage:[* TO *]&fq=year:[* TO *]&fq

Re: Position of Document in Listing (Search Result)

2015-09-03 Thread Alexandre Rafalovitch
That's a good point. What is the query sorting on? Shayan, can you give an example of a query with sorting/etc shown. Regards, Alex. Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter: http://www.solr-start.com/ On 3 September 2015 at 16:24, Chris Hostetter wrote: > > : Wr

Re: Position of Document in Listing (Search Result)

2015-09-03 Thread Chris Hostetter
: Write a PostFilter which takes in a document id. It lets through all : documents until it sees that document id. Once it sees it, it stops : letting them through. : : Thus, the total count of documents would be the position of your queried : car. Sorry guys, that won't work. PostFilter's can

Re: Position of Document in Listing (Search Result)

2015-09-03 Thread Upayavira
Here's the way to do it, based on Alexandre's idea: Write a PostFilter which takes in a document id. It lets through all documents until it sees that document id. Once it sees it, it stops letting them through. Thus, the total count of documents would be the position of your queried car. Then, y

Re: Position of Document in Listing (Search Result)

2015-09-03 Thread Alexandre Rafalovitch
So, basically for each car, you want to generate a query with the same parameter (e.g. make) and then say where in the results for that query, your particular car would be. Right? I think the only way is to run the query and to see where the car is in the result. So, a custom code of some sort. Bu

Re: Position of Document in Listing (Search Result)

2015-09-03 Thread Erick Erickson
OK, but how are they ordered on the public pages? I'm guessing that what I'm missing here is something like "If I did an identical search on the public pages, my car would be number 208" _Something_ has to glue the two separate pages together. If it's something like that I don't see a good way to

Re: Position of Document in Listing (Search Result)

2015-09-02 Thread Shayan Haque
Let me give an example: for suppose we have "public pages" which list cars for makes (they use q=make:Chery or q=make:Toyota etc...) and list cars for all members. Now suppose, in our member account area, there is already a page that lists cars that the current logged in member had posted. In

Re: Position of Document in Listing (Search Result)

2015-09-02 Thread Erick Erickson
It's entirely unclear what you mean by "position". bq: where for "make and model" his first result comes Comes in what? The search result list? Some a-priori ordering of all the cars that has nothing to do with this search? The results list of everyone's cars that have the same make and model? I

Re: Position of Document in Listing (Search Result)

2015-09-02 Thread Shayan Haque
Thanks for the reply Erick. How do I get the position? I am searching on e.g. car model and make, and I want to show on which position the members's first car falls for that specific car model and make. So I tell solr, get listing for the cars with the model and make. I want from that result, if t

Re: Position of Document in Listing (Search Result)

2015-09-02 Thread Erick Erickson
Well, you have access to the start parameter, isn't it just start+(ordinal position in the page)? Best, Erick On Wed, Sep 2, 2015 at 7:01 PM, Shayan Haque wrote: > Hi, > > I need to get a document position within a search result for a specific > member, to show them where there result lie for a