On 7/1/07, Michael Wechner <[EMAIL PROTECTED]> wrote:
Chokchai Phatharamalai wrote:> Greetings, > > I'm trying to write a Java class which invoke Lenya to search contents > in a publication, but I failed. The problem is I couldn't find an API > for searching the contents. At the very beginning, I expected to see > some class which contains search API like below. what Lenya version are you refering to? Cheers Michael > > [code] > public List<SearchResult> search ( String keyword ) { > // finding the contents and return a List of SearchResult > instances. > } > [/code] > > But I couldn't find in any package. :( > Is there any documents I've missed? Any suggestion would be most > appreciated. > > Thank you in advance. > Chokchai Phatharamalai
I suppose you're probably asking about Lenya 1.2, but for the not-quite-released 1.4 version there is the Lucene module's API -- http://lenya.apache.org/apidocs/1.4/modules/lucene/ The Lucene module implements the Searcher interface via AbstractSearcher.java and DefaultSearcherImpl.java For 1.2.5 I see http://svn.apache.org/repos/asf/lenya/tags/RELEASE_1_2_5/src/java/org/apache/lenya/lucene/SearchFiles.java although I am not at all familar with that code. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
