This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

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: 43011
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: 43011
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 ]
 
It's weird that we cook bacon and bake cookies. Eat this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!