Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

apache lucene index issue

 
Ranch Hand
Posts: 510
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

thanks.
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Yahya Elyasse
Ranch Hand
Posts: 510
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 ]
 
Ulf Dittmer
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you going to use a Lucene index with a PHP application?
 
Yahya Elyasse
Ranch Hand
Posts: 510
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Ulf Dittmer:
How are you going to use a Lucene index with a PHP application?



we are consideing 2 options :
1) use php/java bridge library.
2) use a backend servlet that communicates with php web page via ajax .

in your opinion ,which solution of the 2 is much fast, reliable and scalable ?
[ September 28, 2007: Message edited by: othman El Moulat ]
 
Don't count your weasels before they've popped. And now for a mulberry bush related tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic