On 6/21/05, Victoria Vitaver <[EMAIL PROTECTED]> wrote:
> > Or it could be that the file you posted is bad. The file displayed as
> > garbage on my system.
Oops. Gmail.com trashed the attachment. I finally checked at
Gmane.org and the file was better. Could you tell us about your
changes?
> Yes, I've replaced/kept up with your suggested changes, and I am sure
> that my usecase-search.xmap is correct. I have got it 'working' before I
> started changing it. (as mentioned in tread [Re: Lucene: problem while
> crawling] mine did not display any hits).
Probably should get some hits before further modification. It helps
to know something works.
> I was not sure whether it is because my indexing is wrong (There are some
> index files where they should be .. but how do I know whether they are
> right or not?)
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
solprovider
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]