Samuel,

Not exactly sure of your question.  But, if the path is known at the time of
indexing, you just insert it in the Document that is created as part of the
indexing.  If you don't know the path till later, you might insert a partial
path at index time and add the exact location when you use it.  For example,
in my own system, I use a structure called "master_db", which has a standard
structure underneath it.  However, this whole database might be located
anywhere for any given deployment.  So, when I index, I define my document's
location within this "master_db" structure as the "path" field.  Then when I
retrieve it, I simply doc.get("path") and tack it on to the actual location.

As I said, I'm not sure this is exactly what you're looking for, but HTH
anyway.

Regards,

Terry

----- Original Message -----
From: "Samuel Alfonso Vel�zquez D�az" <[EMAIL PROTECTED]>
To: "Lucene Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 04, 2003 11:34 AM
Subject: RE: Lucene Turbine Service


>
> Hi I'm a newbe to lucene, I have troubles creating the index to be usable
by my web application.
>
> The problem is that with the guide lines of the documentation, I created a
index with URLs relative to my local file system
> doc.get("url");   // Returns paths like
C:/CopiaSite20030228/Legislacion/reglamentos/index.htm
> How can I create an index and specify that the ROOT of my documents points
to mydomain.com??
>
> Please help, I've been searching the docs and mailing list, but I've been
without  luck!!
>
> Regards!
>
>
> Samuel Alfonso Vel�zquez D�az
> http://www.geocities.com/samuelvd
> [EMAIL PROTECTED]
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, and more


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

Reply via email to