Re: new data structure for some fields

2015-12-21 Thread Binoy Dalal
I wasn't clear enough. What I meant was that basically your integer field should not be multivalued. That's it. If on the other hand your integer field is multivalued, sort will not work. You will have to figure out some sort of a conditional boosting approach wherein you check the integer value a

Re: new data structure for some fields

2015-12-21 Thread Emir Arnautovic
Maybe missing something but if c and b are one-to-one and you are filtering by c, how can you sort on b since all values will be the same? On 21.12.2015 13:10, Abhishek Mishra wrote: Hi binoy it will not work as category and integer is one to one mapping so if category_id is multivalued same go

Re: new data structure for some fields

2015-12-21 Thread Abhishek Mishra
Hi binoy it will not work as category and integer is one to one mapping so if category_id is multivalued same goes to integer also. and you need some kind of mechanism which will identify which integer to pick given to category_id for search thenafter you can implement sort according to it. On Mon

Re: new data structure for some fields

2015-12-21 Thread Binoy Dalal
Small edit: The sort parameter in the solrconfig goes in the request handler declaration that you're using. So if it's select, put in the list. On Mon, 21 Dec 2015, 17:21 Binoy Dalal wrote: > OK. You will only be able to sort based on the integers if the integer > field is single valued, I.e. o

Re: new data structure for some fields

2015-12-21 Thread Binoy Dalal
OK. You will only be able to sort based on the integers if the integer field is single valued, I.e. only one integer is associated with one category I'd. To do this you've to use the sort parameter. You can either specify it in your solrconfig.XML like so: integer asc Field name followed by the or

Re: new data structure for some fields

2015-12-21 Thread Abhishek Mishra
hi binoy thanks for reply. I mean by sort is to sort the data-sets on the basis of integers values given for that category. For any document let say for an id P1, category associated is c1,c2,c3,c4 (using multivalued field) For new implementation similarly a number is associated with each category.

Re: new data structure for some fields

2015-12-21 Thread Binoy Dalal
When you say sort, do you mean search on the basis of category and integers? Or score the docs based on their category and integer values? Also, for any given document, how many categories or integers are associated with it? On Mon, 21 Dec 2015, 14:43 Abhishek Mishra wrote: > Hello all > > i am

new data structure for some fields

2015-12-21 Thread Abhishek Mishra
Hello all i am facing some kind of requirement that where for an id p1 is associated with some category_ids c1,c2,c3,c4 with some integers b1,b2,b3,b4. We need to sort the query of solr on the basis of b1/b2/b3/b4 depending on given category_id . Right now we mapped the category_ids into multi-va