Re: query help

2012-03-30 Thread Ahmet Arslan
> b) As i have explained i have result set( documents ) and > each document > contains a fields "*ad_text*" (with other fields also) which > is > multivalued..storing some tags say "B1, B2, B3" in each. bt > order of tags > are different for each doc. say (B1, B2, B3) *for > doc1*,  B3,B1 B2*, for

Re: query help

2012-03-29 Thread Erick Erickson
Boosting won't help either I don't think. Boosts apply to the document, and pretty much ignore position information. Best Erick On Thu, Mar 29, 2012 at 2:07 PM, Abhishek tiwari wrote: > can i achieve this with help of  boosting technique ? > > On Thu, Mar 29, 2012 at 10:42 PM, Erick Erickson >

Re: query help

2012-03-29 Thread Abhishek tiwari
can i achieve this with help of boosting technique ? On Thu, Mar 29, 2012 at 10:42 PM, Erick Erickson wrote: > Solr doesn't support sorting on multValued fields so I don't think this > is possible OOB. > > I can't come up with a clever indexing solution that does this either, > sorry. > > Best >

Re: query help

2012-03-29 Thread Erick Erickson
Solr doesn't support sorting on multValued fields so I don't think this is possible OOB. I can't come up with a clever indexing solution that does this either, sorry. Best Erick On Thu, Mar 29, 2012 at 8:27 AM, Abhishek tiwari wrote: > a) No. i do not want to sort the content within document .

Re: query help

2012-03-29 Thread Abhishek tiwari
a) No. i do not want to sort the content within document . I want to sort the documents . b) As i have explained i have result set( documents ) and each document contains a fields "*ad_text*" (with other fields also) which is multivalued..storing some tags say "B1, B2, B3" in each. bt order of tags

Re: query help

2012-03-29 Thread Erick Erickson
Hmmm, I don't quite get this. Are you saying that you want to sort the documents or sort the content within the document? Sorting documents (i.e the results list) requires a single-valued field. So you'd have to, at index time, sort the entries. Sorting the content within the document is somethin

Re: Query help

2010-07-16 Thread Alejandro Marqués Rodríguez
I can't see a way of retrieving five results from one type and five from another in a single query. The only way I can think about that would have a similar behaviour would be: ?q=ContentType:(News+OR+Analysis)&sort=DatePublished+desc&start=0&rows=10 This way you'll have the first 10 results bein

Re: Query help

2010-07-15 Thread Rupert Bates
Sorry, my mistake, the example should have been as follows: ?q=ContentType:News&sort=DatePublished+desc&start=0&rows=5 ?q=ContentType:Analysis&sort=DatePublished+desc&start=0&rows=5 Rupert On 15 July 2010 13:02, kenf_nc wrote: > > Your example though doesn't show different ContentType, it shows

Re: Query help

2010-07-15 Thread kenf_nc
Your example though doesn't show different ContentType, it shows a different sort order. That would be difficult to achieve in one call. Sounds like your best bet is asynchronous (multi-threaded) calls if your architecture will allow for it. -- View this message in context: http://lucene.472066.