Webboard: Sorting Results

[email protected]
Newsgroups gmane.comp.web.mnogosearch.general
Message-ID <[email protected]>
Author: Alexander Barkov
Email: [email protected]
Message:
> I need a way to sort results by file type - essentially, in my results are a lot of PDF's and they are showing up before any of the site's actual html pages - I would just like the PDF's to show up AFTER the html web pages.

> 

> Any thoughts? I didn't see anything in the documentation regarding this type of sorting.



You can try the "s" and "su" search parameters.

Have a look here:



http://www.mnogosearch.org/doc33/msearch-doingsearch.html#search-params



First, make sure that you have the "Section Content-Type..." command

in your indexer.conf. For example:



Section Content-Type            12      64



If you don't have it now, you'll need to clean the database

and re-crawl again after adding this section.





Then you can specify ordering in HTML form variables,

for example:



<!-- for ascending order-->

<INPUT TYPE="HIDDEN" NAME="s" VALUE="s"> 

<INPUT TYPE="HIDDEN" NAME="su" VALUE="Content-Type">



or 



<!-- for descending order-->

<INPUT TYPE="HIDDEN" NAME="s" VALUE="S"> 

<INPUT TYPE="HIDDEN" NAME="su" VALUE="Content-Type">





so when you press the submit button, it effectively goes to this URL:



http://www.hostname.com/search.cgi?q=some+words&s=s&su=Content-Type







Also you can try to resolve why you get all PDF documents

ranked higher. Normally it should return mixed HTML and PDF documents.

Please have a look here how to debug core values:



http://www.mnogosearch.org/doc33/msearch-rel.html#score-debug





Reply: <http://www.mnogosearch.org/board/message.php?id=21000>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.