Search Parameters

0 views
Skip to first unread message

raven

unread,
Jun 25, 2008, 5:59:17 AM6/25/08
to hounder
I wandered why I allways get only one result for any search requests,
then I found out that the search parameter group=site was the reason
(because i indexed only one site to that moment).
Now I have two questions.
1) How can I avoid that search form parses that parameter by
default.
2) Are there any further search parameters available (for example
results per page)

Jorge Handl

unread,
Jun 25, 2008, 6:37:38 PM6/25/08
to raven, hou...@googlegroups.com
Raven,

I just added the group parameter to the documentation (good catch!). I'm also taking it out from the demo searcher webapp because the tutorial crawls only one site which, as you saw, results in just one result in a search.

The parameter was in the src/web-searcher/query.jsp file, in the following line:
       out.write("<input type=\"hidden\" name=\"group\" value=\"site\"/>");

If you want to keep this parameter, you can also add "groupSize", which indicates how many results to group together that have the same field ("site" in this case). By default this is 1, which is what you were seeing.

Other parameters are orderBy, categories, crawl, site, start and hitsPerPage. This last one is what you referred as "results per page".

All these parameters are now documented in the ImplementationDetails document available when you download the source.

Both the binary and the source with these changes are now updated and ready for download.

Regards,
- Jorge
Reply all
Reply to author
Forward
0 new messages