Form Transform
About this task
You can add a secondary parser to a form to perform advanced query manipulation and normalization. With a form transform, you are able to manipulate the parse node after it has been created by your input form. This is what the Teoma source's parse param looks like after searching for "test" with a language CGI parameter with a value of "danish":
<parse url="http://ask.com/search" method="GET" url-encoding="ISO_8859-1" display-url="http://web.ask.com/web" source="teoma" per="100" page="0" start="0" parser="#anonymous#0"> <parse-param name="q" value="test" position="0" /> <parse-param name="language" value="DA" position="7" /> <parse-param name="u" position="1" value="100" /> </parse>
Since this source uses a language: field rather than a CGI parameter for language, you need to grab the value of that param and add it to the query parse-param as a field. With that goal in mind, let's get started.