Re: Lucene Search - System Folders/ Custom Locations
Anish <[email protected]>
| Newsgroups | gmane.comp.cms.lenya.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks Florent, got your point.... :-) So I need to write my own custom component which creates XML inside lenya CMS and later on indexed by lenya's standard mechanism. Florent André wrote: > Hi Anish, > > If you choose the solution of create your documents into a Lenya page, > maybe you can try the LenyaDocWriting Transformer. It's based on the cocoon > sourceWriting Transformer and allow you to create document into lenya with > just a good xml syntax. > > Code is not for now really clean, and some improvement have to be done, but > I used it. Moreover if you try it, It will help - and push - me to create a > more clean version... :) > > You can find it here : > http://www.svn.4sengines.eu/modcontrib/lenyaDocWriting/trunk/lenyaDocWriting-0.1.0/ > > ++ > > On Thu, 15 Oct 2009 14:25:29 +0200, Thorsten Scherler > <[email protected]> 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 <[email protected]> >>>>>> 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: >>>>>> > [email protected] > >>>>>> > For additional commands, e-mail: >>>>>> > [email protected] >>>>>> > >>>>>> > >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> 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: [email protected] > For additional commands, e-mail: [email protected] > > -- Anish Sneh Software Engineer Techblue Softwares Pvt. Ltd. www.technologyblueprint.co.uk