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