Hi all, I'm developing a search tool for a web site using lucene. One issue i need you to clarify is where we should store the generated lucene indexes ? lucene provides a file system storage method FSDirectory.so we need to specify a path like (/usr/lucene on linux) or (c:/lucene on windows). I�m wondering how we can store the indexes in remote server directory ? should we specify a url path for index directory ? are URLs valid paths to create File objects directories ? .
what you think about best way to store indexes to be searched later from a web page on a given server ?
No, URLs don't work. Why would you want to store the index in a remote location? It would be most natural to store the index as part of the web application that implements the search, e.g. in a subdirectory of WEB-INF.
Originally posted by Ulf Dittmer: No, URLs don't work. Why would you want to store the index in a remote location? It would be most natural to store the index as part of the web application that implements the search, e.g. in a subdirectory of WEB-INF.
That's what i was thinking to do (if i was using a j2ee web application).
but the web site is php driven. do you know how i can store index in server with php code ?
thanks [ September 28, 2007: Message edited by: othman El Moulat ]
Joined: Mar 22, 2005
How are you going to use a Lucene index with a PHP application?