[
https://issues.apache.org/activemq/browse/CAMEL-1472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56706#action_56706
]
Ashwin Karpe edited comment on CAMEL-1472 at 12/31/09 7:55 AM:
---------------------------------------------------------------
Hi Claus, Willem & Hadrian,
Please find attached an updated patch and zip file (20091231) containing the
recommended changes
- Added a Producer with the ability to query Lucene using the URI
convention
{code}
from("direct:start").
setHeader("QUERY", constant("Seinfeld")).
to("lucene:MyIndex:query?analyzerRef=#whitespaceAnalyzer&indexDir=#whitespace&maxHits=20").
to("direct:next");
{code}
- Modified the Producer to provide an ability to performs inserts using
the URI convention
{code}
from("direct:start").
to("lucene:MyIndex:insert?analyzerRef=#stdAnalyzer&indexDir=#std&srcDir=#load_dir").
to("mock:result");
{code}
I also changed the name of the Processor to search the Lucene Index from
LuceneSearcher to LuceneQueryProcessor. The LuceneSearcher now is a more
focused class for performing the search operation.
Please let me know if you have any questions or have further suggestions.
Cheers,
Ashwin...
P.S. Wish you all a happy new year (2010)...
was (Author: akarpe):
Hi Claus, Willem & Hadrian,
Please find attached an updated patch and zip file (20091231) containing the
recommended changes
- Added a Producer with the ability to query Lucene using the URI
convention
{code}
from("direct:start").
setHeader("QUERY", constant("Seinfeld")).
to("lucene:searchIndex:query?analyzerRef=#whitespaceAnalyzer&indexDir=#whitespace&maxHits=20").
to("direct:next");
{code}
- Modified the Producer to provide an ability to performs inserts using
the URI convention
{code}
from("direct:start").
to("lucene:stdQuotesIndex:insert?analyzerRef=#stdAnalyzer&indexDir=#std&srcDir=#load_dir").
to("mock:result");
{code}
I also changed the name of the Processor to search the Lucene Index from
LuceneSearcher to LuceneQueryProcessor. The LuceneSearcher now is a more
focused class for performing the search operation.
Please let me know if you have any questions or have further suggestions.
Cheers,
Ashwin...
P.S. Wish you all a happy new year (2010)...
> Lucene Component
> ----------------
>
> Key: CAMEL-1472
> URL: https://issues.apache.org/activemq/browse/CAMEL-1472
> Project: Apache Camel
> Issue Type: New Feature
> Reporter: Claus Ibsen
> Assignee: Ashwin Karpe
> Fix For: Future
>
> Attachments: camel-lucene-20091227.patch,
> camel-lucene-20091231.patch, camel-lucene.zip, camel-lucene20091231.zip
>
>
> We should add a new component for Apache Lucene integration
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.