Re: Ranking search results by content type

2008-03-05 Thread Chris Hostetter
: Or you can do what I do and when you search, just weight each type : differently. My types are all just one letter, so for instance: : : q=((search string) AND type:A^1) OR ((search string) AND type:B^10) OR etc etc a simpler approach would be... q = +(search string) type:A^1 type:B^10 typ

Re: Ranking search results by content type

2008-03-05 Thread Reece
You could have each doctype correspond to a number that's saved in the type field, and sort by the number and then score. Or you can do what I do and when you search, just weight each type differently. My types are all just one letter, so for instance: q=((search string) AND type:A^1) OR ((searc

Ranking search results by content type

2008-03-05 Thread James Wiegand
Hi there, What I am trying to do is get search results sorted by content type, since there is an order in which results are preferred, for example: * Topics * Postings * Replies * News in that order. The content type is encoded in a "type" field that is stored in the document. Am I right in thi