Oops. Gmail.com trashed the attachment. I finally checked at
Gmane.org and the file was better. Could you tell us about your
changes?
I need to customise search to look for multiple fields at a time. Also,
I will only ever be dealing with the one publication & language so I
tried to cut out stuff which dealt with that.
There is a part in the file that do not understand the function of.
(the whole try block around the occurance of Analyzer ll_analyzer)
Seems to be rather redundant to me... or am I missing something ?
I have also tried 'tidying up' the file given - renaming variables,
simplifying logic and all that jazz.
Ask the Lucene people. The log said it worked, and a test pipeline
showing the XML results worked.
In publication-sitemap.xmap, I added:
<map:match pattern="**/*.searchtest">
<map:generate type="serverpages"
src="lenya/content/search/search-and-results.xsp" label="xml">
<map:parameter name="max-hits-per-page" value="10"/>
<map:parameter name="max-pages" value="10"/>
<map:parameter name="excerpt-offset" value="150"/>
<map:parameter name="number-of-pubs" value="1"/>
<map:parameter name="pub0-id" value="{page-envelope:publication-id}"/>
<map:parameter name="pub0-name" value="{page-envelope:publication}"/>
<map:parameter name="pub0-index-dir"
value="./work/search/lucene/index/{2}/index"/>
<map:parameter name="pub0-search-fields" value="contents,title"/>
<map:parameter name="pub0-excerpt-dir" value="./content/{2}"/>
<map:parameter name="pub0-prefix" value=""/>
</map:generate>
<map:serialize type="xml"/>
</map:match>
Then try:
http://127.0.0.1:8888/{pub}/live/index.searchtest?query=body
That will prove useful when you need to test search-and-result.xsp
Thank you :)
It works a charm!
Now to figuring out why I get no hits ;).
Vica
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]