Hi Anish, If you are just wanting to index a few folders, then maybe you could create documents using cocoon's directory generator and index it's output?
Regards Vik Thorsten Scherler wrote: > On Thu, 2009-10-15 at 17:38 +0530, Anish wrote: >>> http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/pubs/default/config/search/lucene_index.xml?view=markup >>> >>> There you can configure the location of the lucene index. >>> >> Thanks Thorsten >> >> But I'm bit confused that how to configure this file as this contains >> the location of lucene indexes, but I wanted to configure actual >> physical locations on the server like if I want a to search into a new >> folder in which all XMLs uploaded by client reside, what path should I >> give? > > So what you are planing to do is to INDEX a file system, correct? That > is not working out of the box. You need to write a custom component to > do this indexing part. > > There are some examples to connect to a SOLR server (which is based on > Lucene) with cocoon, but that is not exactly like you want it. Look into > search2xhtml.xsl like sac pointed out. There you will see how to > "prepare" a document that you later on can send to lucene. However the > easiest way I reckon is to store the doc you want to index in Lenya and > let lenya do the indexing job for you. > > If you need a crawler to crawl the file system you may want to look into > Apache Droids. > > salu2 > >> >> Please suggest >> >> >> Thorsten Scherler wrote: >>> On Thu, 2009-10-15 at 15:34 +0530, Anish wrote: >>> >>>>> Please try to look into the default publication "search >>>>> functionality" in lenya to know how it works. >>>>> >>>> Hi Sac >>>> >>>> I have looked for it but by default it works with the standard >>>> locations of CMS, actually I wanted to use my custom locations. I'm >>>> unable to figure out that how to configure lucene search within the >>>> publication for accessing my custom locations. >>>> >>>> >>> I am not 100% sure whether I understand you but have a look at >>> http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/pubs/default/config/search/lucene_index.xml?view=markup >>> >>> There you can configure the location of the lucene index. >>> >>> HTH >>> >>> salu2 >>> >>> >>>> Please suggest. >>>> TIA >>>> >>>> sac sha wrote: >>>> >>>>> Hi Anish >>>>> >>>>> You are right. Lucene search is there in lenya.. >>>>> >>>>> Please try to look into the default publication "search >>>>> functionality" in lenya to know how it works. >>>>> >>>>> Regards >>>>> Sac >>>>> >>>>> On Thu, Oct 15, 2009 at 9:46 AM, Anish <anish.s...@techblue.co.uk> >>>>> wrote: >>>>> > See the FAQ on indexing here: >>>>> > http://wiki.apache.org/lucene-java/LuceneFAQ#Indexing >>>>> > >>>>> >>>>> >>>>> I've checked the documentation, it gives implementation of >>>>> lucene search in java but I need to configure that in lenya >>>>> pub. I think it is already implemented in lenya, we just >>>>> need to edit/append some configuration file . >>>>> >>>>> Correct me if I'm wrong and please suggest. >>>>> >>>>> Regards >>>>> >>>>> Anish >>>>> >>>>> >>>>> >>>>> Vik Tara wrote: >>>>> > Anish, >>>>> > >>>>> > Check the lucene project website and their documentation. >>>>> > >>>>> > See the FAQ on indexing here: >>>>> > http://wiki.apache.org/lucene-java/LuceneFAQ#Indexing >>>>> > >>>>> > Regards >>>>> > >>>>> > >>>>> > Vik >>>>> > >>>>> > Anish wrote: >>>>> > >>>>> > > Hi All >>>>> > > >>>>> > > I want to use lucene search for my publication. I want to >>>>> include some >>>>> > > external system folder in the search i.e. in my custom >>>>> search, I want >>>>> > > some XMLs to be searched which are placed on the system but >>>>> outside tomcat. >>>>> > > >>>>> > > Please suggest >>>>> > > >>>>> > > >>>>> > >>>>> --------------------------------------------------------------------- >>>>> > To unsubscribe, e-mail: user-unsubscr...@lenya.apache.org >>>>> > For additional commands, e-mail: user-h...@lenya.apache.org >>>>> > >>>>> > >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Regards >>>>> Sachin Sharma >>>>> >>>>> >>>> -- >>>> Anish Sneh >>>> Software Engineer >>>> Techblue Softwares Pvt. Ltd. >>>> www.technologyblueprint.co.uk >>>> >>>> >>>> >> >> -- >> Anish Sneh >> Software Engineer >> Techblue Softwares Pvt. Ltd. >> www.technologyblueprint.co.uk >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@lenya.apache.org For additional commands, e-mail: user-h...@lenya.apache.org