Overriding unwanted page size in SOLR -


i have web application uses solr backend search service.

all requests control searches requests: user (type something, choose page size, sort critera) and, after pressing search button, corresponding servlet on web app calls solr.

now, parameters sent servlet exposed in browser address bar; because

1) each page on webapp can stored permalink
2) search can controlled changing directly url

on top of that, specific parameter, page size, impose constraint. mean: if select menu on web app proposes 3 choices (5,10,15) don't want other values.

now, know can in servlet wondering if possible on solr side too...local params? don't know.

briefly: "rows" parameters on solr must 5,10 or 20: if value > 20 comes 20 applied.

within solr searchhandlers can predefine configuration settings outlined in configuration section. allows set following parameter behaviors

  • defaults - provides default param values used if param not have value specified @ request time.
  • appends - provides param values used in addition values specified @ request time (or defaults.
  • invariants - provides param values used in spite of values provided @ request time. way of letting solr maintainer lock down options available solr clients. params values specified here used regardless of values may specified in either query, "defaults", or "appends" params.

however, these 3 options, not provide specific behavior of limiting rows value 20 seeking. believe way limit within solr create custom request handler , plug solr. article - developing request handler solr provides overview of steps needed create own request handler.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -