On 8/23/05, tiana ralambon <[EMAIL PROTECTED]> wrote:
> Is it possible to configure lucene to index not only
> contents and title but also the URL of each page ?

I am assuming you are using a Lucene configuration based on my work.

The "content" index is created using the entire Lenya document.  The
URL is based on the directory paths outside the document, so that
information is not included in the index.

The URL displayed in results is added during the display stage based
on the document identifier from "hit/uri/@parent" and adding the
publication and language.

Lucene automatically adds a "url" field to the index.  You could
search on that, but it contains:
/path/documentid/index_en.xml
when you really want:
/path/documentid_en.xml

If you really want the URL, you need to add an entry to the Lenya
documents so you can add it to "lenyadocs.xconf".  (If you have that
file, you are using my version.)

Why would you want to search the URLs?  Would a sitemap (in the web
sense) fulfill that need?

solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to