You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
From: Keywan G. <k.g...@ib...> - 2012-11-29 13:24:21
|
Dear list, i am using clucene (0.9) and the perl wrapper(0.18) for a while now, but some functionality is missing. Its time for update so I found a fork of clunce named LucenePlusPlus for more information about it see: http://sourceforge.net/mailarchive/message.php?msg_id=29678580 https://groups.google.com/forum/?fromgroups#!forum/luceneplusplus https://github.com/ustramooner/LucenePlusPlus/ but even more interesting it brings bindings to phyton via swig https://github.com/ustramooner/python-lucenepp As swig can also be used to create perl wrappers, it should be possible to use this project for building a perl wrapper But i don't know much about swig or the internals of the project, so maybe some one can help me to set up a working configuration for perl. regards keywan |
From: Tomaž Š. <tom...@ta...> - 2011-09-15 21:21:32
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 14. 09. 2011 08:30, Erik Wasser wrote: > Hello *, > > I'm interested in the development of clucene, especially in the perl port. It > seems that the existing perl modules are either a complete port > (http://search.cpan.org/dist/Plucene/) or very outdated > http://search.cpan.org/~pedwards/CLucene-1.00/CLucene.pm (from 2005). Note the PLucene is a pure-Perl port of Lucene and has nothing to do with CLucene. And AFAIK CLucene developers don't have anything common with the group that develops the original (Java) Lucene. > So my questions are: > 1) Is there active development of the perl library for the current version of > clucene? (I guess 'no'). No. I tried contacting the maintainer listed on CPAN and got no replies. > 2) How hard are the changes to update the perl stuff from from supporting > clucene 0.9.X to 2.3.X? You should find a changelog (if it exists) or contact the CLucene developers about this. > 3) Can/Should I do it? Are they any hints/help/on this issue? Have some other > tried it? I am still using CLucene in some of my projects. I can contribute a few patches, if you decide to update it. Also note that Debian still ships CLucene 0.9.21 (which is the reason I'm still able to use it with Perl). I don't know about other distributions. Best regards Tomaž -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5yZ6sACgkQsAlAlRhL9q8BUwCg0+78ZJysh5v6w5ZHbpB0wNEt 8E4AoNNgjA+qh30ia92l2j2To9sUrfum =KY/e -----END PGP SIGNATURE----- |
From: Erik W. <eri...@iq...> - 2011-09-14 06:31:09
|
Hello *, I'm interested in the development of clucene, especially in the perl port. It seems that the existing perl modules are either a complete port (http://search.cpan.org/dist/Plucene/) or very outdated http://search.cpan.org/~pedwards/CLucene-1.00/CLucene.pm (from 2005). Even the perl binding mentioned on our homepage http://search.cpan.org/~tbusch/Lucene-0.18/lib/Lucene.pm are from 2007. Compiling the perl binding with the source from clucene 2.3.3.4 failed with the follwing error messages: In file included from Lucene.xs:22:0: /usr/local/clucene/include/CLucene/util/Reader.h:13:2: error: #error Reader has been refactored. It is recommended that you use strigi streams /usr/local/clucene/include/CLucene/util/Reader.h:14:2: error: #error for all input into CLucene. If, however, you dont want to use that dependency, /usr/local/clucene/include/CLucene/util/Reader.h:15:16: warning: missing terminating ' character [enabled by default] /usr/local/clucene/include/CLucene/util/Reader.h:15:2: error: #error then you'll have to refactor your current code. The jstreams namespace /usr/local/clucene/include/CLucene/util/Reader.h:16:2: error: #error was completely removed In file included from Lucene.xs:75:0: cpp/Tokenizer.cpp:13:14: error: conflicting return type specified for ‘virtual bool PerlTokenizer::next(Token*)’ ...etc... There were nearly two pages of error messages. So I think this part needs some refactoring. B-) And there is this old thread "[Clucene-perl] Is Lucene.pm dead ?" from this mailing list (https://sourceforge.net/mailarchive/forum.php?thread_name=4D6692DB.30508%40tablix.org&forum_name=clucene- perl). So my questions are: 1) Is there active development of the perl library for the current version of clucene? (I guess 'no'). 2) How hard are the changes to update the perl stuff from from supporting clucene 0.9.X to 2.3.X? 3) Can/Should I do it? Are they any hints/help/on this issue? Have some other tried it? -- So long... Erik |
From: Tomaž Š. <tom...@ta...> - 2011-02-24 17:18:38
|
On 24. 02. 2011 18:03, Sebastien Carrere wrote: > Thanks Tomaž , > > Which tool do you plan to use in place of Lucene ? I've heard good things about Kinosearch, but I haven't tried it yet. There's also SWISH-e, but last I checked they were strictly ASCII-only. And there's always a possiblity of using the real Lucene (Java) through Solr or something. > On 24/02/2011 17:51, Tomaž Šolc wrote: >> On 24. 02. 2011 17:37, Sebastien Carrere wrote: >> >>> Bonjour a tous, >>> >>> I'm wondering if Lucene.pm is no more developped. >>> No update since September 2007, and a lot of missing methods such as >>> $reader->terms . >>> >>> Anyone has any information ? >>> Does someone add some methods and want to share ? >>> >> Yes, it's dead. >> >> Considering it is broken for Unicode characters outside of BMP range I >> will not use it on any new projects. >> >> Here's a patch of mine that adds getValues() method. No answer since >> 2009. >> >> https://rt.cpan.org/Public/Bug/Display.html?id=49817 >> >> Regards >> Tomaž >> >> ------------------------------------------------------------------------------ >> >> Free Software Download: Index, Search& Analyze Logs and other IT data in >> Real-Time with Splunk. Collect, index and harness all the fast moving >> IT data >> generated by your applications, servers and devices whether physical, >> virtual >> or in the cloud. Deliver compliance at lower cost and gain new business >> insights. http://p.sf.net/sfu/splunk-dev2dev >> _______________________________________________ >> Clucene-perl mailing list >> Clu...@li... >> https://lists.sourceforge.net/lists/listinfo/clucene-perl >> > > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT data > generated by your applications, servers and devices whether physical, virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > > > > _______________________________________________ > Clucene-perl mailing list > Clu...@li... > https://lists.sourceforge.net/lists/listinfo/clucene-perl |
From: Marios T. <re...@gm...> - 2011-02-24 17:13:19
|
I, for one, have switched to xapian. They have better support for perl, although xapian is more "low level" than (c)lucene and as a result you have to write a little more code than Lucene.pm. On Thu, Feb 24, 2011 at 06:03:54PM +0100, Sebastien Carrere wrote: >Thanks Tomaž , > >Which tool do you plan to use in place of Lucene ? >I plan to try to implement some methods using the .xs files, but first I >have to learn how to ! > >sebastien > > On 24/02/2011 17:51, Tomaž Šolc wrote: >> On 24. 02. 2011 17:37, Sebastien Carrere wrote: >> >>> Bonjour a tous, >>> >>> I'm wondering if Lucene.pm is no more developped. >>> No update since September 2007, and a lot of missing methods such as >>> $reader->terms . >>> >>> Anyone has any information ? >>> Does someone add some methods and want to share ? >>> >> Yes, it's dead. >> >> Considering it is broken for Unicode characters outside of BMP range I >> will not use it on any new projects. >> >> Here's a patch of mine that adds getValues() method. No answer since 2009. >> >> https://rt.cpan.org/Public/Bug/Display.html?id=49817 >> >> Regards >> Tomaž >> >> ------------------------------------------------------------------------------ >> Free Software Download: Index, Search& Analyze Logs and other IT data in >> Real-Time with Splunk. Collect, index and harness all the fast moving IT data >> generated by your applications, servers and devices whether physical, virtual >> or in the cloud. Deliver compliance at lower cost and gain new business >> insights. http://p.sf.net/sfu/splunk-dev2dev >> _______________________________________________ >> Clucene-perl mailing list >> Clu...@li... >> https://lists.sourceforge.net/lists/listinfo/clucene-perl >> > >begin:vcard >fn:Sebastien Carrere >n:Carrere;Sebastien >org:UMR 441-2594 (INRA-CNRS);Laboratoire de Interactions Plantes Micro-organismes >adr:Chemin de Borde Rouge - Auzeville;;BP 52627;Castanet Tolosan;;31326;FRANCE >email;internet:Seb...@to... >tel;work:(+33)5.61.28.53.29 >tel;fax:(+33)5.61.28.50.61 >url:http://www.toulouse.inra.fr/centre/lipm/ >version:2.1 >end:vcard > >------------------------------------------------------------------------------ >Free Software Download: Index, Search & Analyze Logs and other IT data in >Real-Time with Splunk. Collect, index and harness all the fast moving IT data >generated by your applications, servers and devices whether physical, virtual >or in the cloud. Deliver compliance at lower cost and gain new business >insights. http://p.sf.net/sfu/splunk-dev2dev >_______________________________________________ >Clucene-perl mailing list >Clu...@li... >https://lists.sourceforge.net/lists/listinfo/clucene-perl |
From: Sebastien C. <Seb...@to...> - 2011-02-24 17:03:48
|
Thanks Tomaž , Which tool do you plan to use in place of Lucene ? I plan to try to implement some methods using the .xs files, but first I have to learn how to ! sebastien On 24/02/2011 17:51, Tomaž Šolc wrote: > On 24. 02. 2011 17:37, Sebastien Carrere wrote: > >> Bonjour a tous, >> >> I'm wondering if Lucene.pm is no more developped. >> No update since September 2007, and a lot of missing methods such as >> $reader->terms . >> >> Anyone has any information ? >> Does someone add some methods and want to share ? >> > Yes, it's dead. > > Considering it is broken for Unicode characters outside of BMP range I > will not use it on any new projects. > > Here's a patch of mine that adds getValues() method. No answer since 2009. > > https://rt.cpan.org/Public/Bug/Display.html?id=49817 > > Regards > Tomaž > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search& Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT data > generated by your applications, servers and devices whether physical, virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > Clucene-perl mailing list > Clu...@li... > https://lists.sourceforge.net/lists/listinfo/clucene-perl > |
From: Tomaž Š. <tom...@ta...> - 2011-02-24 16:52:06
|
On 24. 02. 2011 17:37, Sebastien Carrere wrote: > Bonjour a tous, > > I'm wondering if Lucene.pm is no more developped. > No update since September 2007, and a lot of missing methods such as > $reader->terms . > > Anyone has any information ? > Does someone add some methods and want to share ? Yes, it's dead. Considering it is broken for Unicode characters outside of BMP range I will not use it on any new projects. Here's a patch of mine that adds getValues() method. No answer since 2009. https://rt.cpan.org/Public/Bug/Display.html?id=49817 Regards Tomaž |
From: Ted D. <te...@dy...> - 2010-10-22 16:42:08
|
I'm having trouble figuring out how to set the MaxClauseCount: BooleanQuery->setMaxClauseCount(int) Is this possible using Lucene.pm, and if so, any suggestions? Also is Lucene.pm being actively used?Not many posts on this list and not much on the web... perhaps it makes sense to change over to Lucy or some other flavor. Thanks, Ted |
From: Tomaž Š. <tom...@ta...> - 2009-07-19 18:36:13
|
Hi While building a search function for my blog software I needed access to the getValues() method of the Document object (I'm using multiple values for a single field and get() only returns the first value). I wrote a patch that adds this method to Perl bindings - it's attached, if you would like to include it in the official source. Best regards Tomaž |
From: Newton V. <nw...@gm...> - 2009-02-23 23:05:17
|
Hi all, I'm trying to install Lucene-0.18 in Solaris 5.10. I have installed clucene-core-0.9.20 (the latest stable version according to installation recommendations at http://search.cpan.org/~tbusch/Lucene-0.18/lib/Lucene.pm<http://search.cpan.org/%7Etbusch/Lucene-0.18/lib/Lucene.pm> ). I had an error at line 34 of Makefile.PL running 'perl Makefile.PL'. I have changed line 11 of Makefile.PL: "linux" => ["/usr/include", "/usr/lib"], to: "solaris" => ["/usr/include", "/usr/lib"], and I had the following message: Using clucene config file /usr/lib/CLucene/clucene-config.h to build Makefile Building using clucene-core 0.9.20 Note (probably harmless): No library found for -lstdc++ Writing Makefile for Lucene But when I run 'make' I got the following: g++ -c -I/usr/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DVERSION=\"0.18\" -DXS_VERSION=\"0.18\" -KPIC "-I/opt/coolstack/lib/perl5/5.8.8/i86pc-solaris/CORE" -DCLUCENE_0_9_20 Lucene.c g++: unrecognized option `-KPIC' xs/PerFieldAnalyzerWrapper.xs: In function `void XS_Lucene__Analysis__PerFieldAnalyzerWrapper_addAnalyzer(CV*)': xs/PerFieldAnalyzerWrapper.xs:18: error: no matching function for call to `lucene::analysis::PerFieldAnalyzerWrapper::addAnalyzer(const wchar_t*&, Analyzer*&)' /usr/include/CLucene/analysis/Analyzers.h:235: note: candidates are: void lucene::analysis::PerFieldAnalyzerWrapper::addAnalyzer(const char*, lucene::analysis::Analyzer*) Lucene.c: In function `void XS_Lucene__Analysis__StopAnalyzer_new(CV*)': Lucene.c:574: error: `STRDUP_AtoW' undeclared (first use this function) Lucene.c:574: error: (Each undeclared identifier is reported only once for each function it appears in.) xs/StopAnalyzer.xs:13: error: no matching function for call to `lucene::analysis::StopAnalyzer::StopAnalyzer(const wchar_t**)' /usr/include/CLucene/analysis/Analyzers.h:174: note: candidates are: lucene::analysis::StopAnalyzer::StopAnalyzer(const lucene::analysis::StopAnalyzer&) /usr/include/CLucene/analysis/Analyzers.h:183: note: lucene::analysis::StopAnalyzer::StopAnalyzer(const char**) /usr/include/CLucene/analysis/Analyzers.h:179: note: lucene::analysis::StopAnalyzer::StopAnalyzer() Lucene.c: In function `void XS_Lucene__Analysis__Standard__StandardAnalyzer_new(CV*)': Lucene.c:772: error: `STRDUP_AtoW' undeclared (first use this function) xs/StandardAnalyzer.xs:13: error: no matching function for call to `lucene::analysis::standard::StandardAnalyzer::StandardAnalyzer(const wchar_t**)' /usr/include/CLucene/analysis/standard/StandardAnalyzer.h:26: note: candidates are: lucene::analysis::standard::StandardAnalyzer::StandardAnalyzer(const lucene::analysis::standard::StandardAnalyzer&) /usr/include/CLucene/analysis/standard/StandardAnalyzer.h:34: note: lucene::analysis::standard::StandardAnalyzer::StandardAnalyzer(const char**) /usr/include/CLucene/analysis/standard/StandardAnalyzer.h:31: note: lucene::analysis::standard::StandardAnalyzer::StandardAnalyzer() xs/Document.xs: In function `void XS_Lucene__Document_get(CV*)': xs/Document.xs:21: error: no matching function for call to `lucene::document::Document::get(wchar_t*&)' /usr/include/CLucene/document/Document.h:85: note: candidates are: const char* lucene::document::Document::get(const char*) const xs/Document.xs: In function `void XS_Lucene__Document_removeField(CV*)': xs/Document.xs:30: error: no matching function for call to `lucene::document::Document::removeField(wchar_t*&)' /usr/include/CLucene/document/Document.h:128: note: candidates are: void lucene::document::Document::removeField(const char*) xs/Document.xs: In function `void XS_Lucene__Document_toString(CV*)': xs/Document.xs:36: error: cannot convert `char*' to `const wchar_t*' in assignment xs/Field.xs: In function `void XS_Lucene__Document__Field_Keyword(CV*)': xs/Field.xs:7: error: no matching function for call to `lucene::document::Field::Keyword(const wchar_t*&, const wchar_t*&)' /usr/include/CLucene/document/Field.h:119: note: candidates are: static lucene::document::Field* lucene::document::Field::Keyword(const char*, const char*) xs/Field.xs: In function `void XS_Lucene__Document__Field_UnIndexed(CV*)': xs/Field.xs:17: error: no matching function for call to `lucene::document::Field::UnIndexed(const wchar_t*&, const wchar_t*&)' /usr/include/CLucene/document/Field.h:125: note: candidates are: static lucene::document::Field* lucene::document::Field::UnIndexed(const char*, const char*) xs/Field.xs: In function `void XS_Lucene__Document__Field_Text(CV*)': xs/Field.xs:27: error: no matching function for call to `lucene::document::Field::Text(const wchar_t*&, const wchar_t*&)' /usr/include/CLucene/document/Field.h:132: note: candidates are: static lucene::document::Field* lucene::document::Field::Text(const char*, const char*, bool) /usr/include/CLucene/document/Field.h:145: note: static lucene::document::Field* lucene::document::Field::Text(const char*, lucene::util::Reader*, bool) xs/Field.xs: In function `void XS_Lucene__Document__Field_UnStored(CV*)': xs/Field.xs:37: error: no matching function for call to `lucene::document::Field::UnStored(const wchar_t*&, const wchar_t*&)' /usr/include/CLucene/document/Field.h:138: note: candidates are: static lucene::document::Field* lucene::document::Field::UnStored(const char*, const char*, bool) xs/Term.xs: In function `void XS_Lucene__Index__Term_new(CV*)': xs/Term.xs:7: error: no matching function for call to `lucene::index::Term::Term(wchar_t*&, wchar_t*&)' /usr/include/CLucene/index/Term.h:39: note: candidates are: lucene::index::Term::Term(const lucene::index::Term&) /usr/include/CLucene/index/Term.h:68: note: lucene::index::Term::Term(const char*, const char*) /usr/include/CLucene/index/Term.h:62: note: lucene::index::Term::Term(const char*, const char*, bool) /usr/include/CLucene/index/Term.h:59: note: lucene::index::Term::Term() /usr/include/CLucene/index/Term.h:56: note: lucene::index::Term::Term(const lucene::index::Term*, const char*) xs/Explanation.xs: In function `void XS_Lucene__Search__Explanation_toString(CV*)': xs/Explanation.xs:5: error: cannot convert `char*' to `wchar_t*' in assignment xs/RangeFilter.xs: In function `void XS_Lucene__Search__RangeFilter_new(CV*)': xs/RangeFilter.xs:10: error: no matching function for call to `lucene::search::RangeFilter::RangeFilter(wchar_t*&, wchar_t*&, wchar_t*&, bool&, bool&)' /usr/include/CLucene/search/RangeFilter.h:33: note: candidates are: lucene::search::RangeFilter::RangeFilter(const char*, const char*, const char*, bool, bool) /usr/include/CLucene/search/RangeFilter.h:30: note: lucene::search::RangeFilter::RangeFilter(const lucene::search::RangeFilter&) xs/RangeFilter.xs: In function `void XS_Lucene__Search__RangeFilter_Less(CV*)': xs/RangeFilter.xs:21: error: no matching function for call to `lucene::search::RangeFilter::Less(wchar_t*&, wchar_t*&)' /usr/include/CLucene/search/RangeFilter.h:35: note: candidates are: static lucene::search::RangeFilter* lucene::search::RangeFilter::Less(char*, char*) xs/RangeFilter.xs: In function `void XS_Lucene__Search__RangeFilter_More(CV*)': xs/RangeFilter.xs:32: error: no matching function for call to `lucene::search::RangeFilter::More(wchar_t*&, wchar_t*&)' /usr/include/CLucene/search/RangeFilter.h:37: note: candidates are: static lucene::search::RangeFilter* lucene::search::RangeFilter::More(char*, char*) xs/RangeFilter.xs: In function `void XS_Lucene__Search__RangeFilter_toString(CV*)': xs/RangeFilter.xs:40: error: cannot convert `char*' to `wchar_t*' in assignment xs/SortField.xs: In function `void XS_Lucene__Search__SortField_new(CV*)': xs/SortField.xs:7: error: no matching function for call to `lucene::search::SortField::SortField(wchar_t*&)' /usr/include/CLucene/search/Sort.h:226: note: candidates are: lucene::search::SortField::SortField(const char*, lucene::search::SortComparatorSource*, bool) /usr/include/CLucene/search/Sort.h:215: note: lucene::search::SortField::SortField(const char*, int32_t, bool) /usr/include/CLucene/search/Sort.h:203: note: lucene::search::SortField::SortField(const char*) /usr/include/CLucene/search/Sort.h:152: note: lucene::search::SortField::SortField(const lucene::search::SortField&) xs/SortField.xs:15: error: no matching function for call to `lucene::search::SortField::SortField(wchar_t*&, lucene::search::SortField::<anonymous enum>, int&)' /usr/include/CLucene/search/Sort.h:226: note: candidates are: lucene::search::SortField::SortField(const char*, lucene::search::SortComparatorSource*, bool) /usr/include/CLucene/search/Sort.h:215: note: lucene::search::SortField::SortField(const char*, int32_t, bool) /usr/include/CLucene/search/Sort.h:203: note: lucene::search::SortField::SortField(const char*) /usr/include/CLucene/search/Sort.h:152: note: lucene::search::SortField::SortField(const lucene::search::SortField&) xs/SortField.xs:24: error: no matching function for call to `lucene::search::SortField::SortField(wchar_t*&, int&, int&)' /usr/include/CLucene/search/Sort.h:226: note: candidates are: lucene::search::SortField::SortField(const char*, lucene::search::SortComparatorSource*, bool) /usr/include/CLucene/search/Sort.h:215: note: lucene::search::SortField::SortField(const char*, int32_t, bool) /usr/include/CLucene/search/Sort.h:203: note: lucene::search::SortField::SortField(const char*) /usr/include/CLucene/search/Sort.h:152: note: lucene::search::SortField::SortField(const lucene::search::SortField&) xs/Query.xs: In function `void XS_Lucene__Search__Query_toString(CV*)': xs/Query.xs:5: error: cannot convert `char*' to `wchar_t*' in assignment xs/QueryParser.xs: In function `void XS_Lucene__QueryParser_new(CV*)': xs/QueryParser.xs:7: error: no matching function for call to `lucene::queryParser::QueryParser::QueryParser(wchar_t*&, Analyzer*&)' /usr/include/CLucene/queryParser/QueryParser.h:57: note: candidates are: lucene::queryParser::QueryParser::QueryParser(const lucene::queryParser::QueryParser&) /usr/include/CLucene/queryParser/QueryParser.h:66: note: lucene::queryParser::QueryParser::QueryParser(const char*, lucene::analysis::Analyzer*) xs/QueryParser.xs: In function `void XS_Lucene__QueryParser_parse(CV*)': xs/QueryParser.xs:24: error: no matching function for call to `lucene::queryParser::QueryParser::parse(wchar_t*&)' /usr/include/CLucene/queryParser/QueryParser.h:75: note: candidates are: virtual lucene::search::Query* lucene::queryParser::QueryParser::parse(const char*) /usr/include/CLucene/queryParser/QueryParser.h:83: note: virtual lucene::search::Query* lucene::queryParser::QueryParser::parse(lucene::util::Reader*) /usr/include/CLucene/queryParser/QueryParser.h:89: note: static lucene::search::Query* lucene::queryParser::QueryParser::parse(const char*, const char*, lucene::analysis::Analyzer*) Lucene.c: In function `void XS_Lucene__MultiFieldQueryParser_new(CV*)': Lucene.c:3545: error: `STRDUP_AtoW' undeclared (first use this function) xs/MultiFieldQueryParser.xs:25: error: no matching function for call to `lucene::queryParser::MultiFieldQueryParser::MultiFieldQueryParser(const wchar_t**, Analyzer*&, lucene::queryParser::BoostMap*&)' /usr/include/CLucene/queryParser/MultiFieldQueryParser.h:34: note: candidates are: lucene::queryParser::MultiFieldQueryParser::MultiFieldQueryParser(const lucene::queryParser::MultiFieldQueryParser&) /usr/include/CLucene/queryParser/MultiFieldQueryParser.h:63: note: lucene::queryParser::MultiFieldQueryParser::MultiFieldQueryParser(const char**, lucene::analysis::Analyzer*, lucene::queryParser::BoostMap*) xs/MultiFieldQueryParser.xs: In function `void XS_Lucene__MultiFieldQueryParser_parse(CV*)': xs/MultiFieldQueryParser.xs:78: error: no matching function for call to `lucene::queryParser::QueryParser::parse(wchar_t*&)' /usr/include/CLucene/queryParser/QueryParser.h:75: note: candidates are: virtual lucene::search::Query* lucene::queryParser::QueryParser::parse(const char*) /usr/include/CLucene/queryParser/QueryParser.h:83: note: virtual lucene::search::Query* lucene::queryParser::QueryParser::parse(lucene::util::Reader*) /usr/include/CLucene/queryParser/QueryParser.h:89: note: static lucene::search::Query* lucene::queryParser::QueryParser::parse(const char*, const char*, lucene::analysis::Analyzer*) Lucene.c:3714: error: `STRDUP_AtoW' undeclared (first use this function) xs/MultiFieldQueryParser.xs:94: error: no matching function for call to `lucene::queryParser::MultiFieldQueryParser::parse(wchar_t*&, const wchar_t**, Analyzer*&)' /usr/include/CLucene/queryParser/MultiFieldQueryParser.h:83: note: candidates are: static lucene::search::Query* lucene::queryParser::MultiFieldQueryParser::parse(const char*, const char**, lucene::analysis::Analyzer*) /usr/include/CLucene/queryParser/MultiFieldQueryParser.h:115: note: static lucene::search::Query* lucene::queryParser::MultiFieldQueryParser::parse(const char*, const char**, const uint8_t*, lucene::analysis::Analyzer*) Lucene.c: In function `void XS_Lucene__Analysis__StopFilter_new(CV*)': Lucene.c:4073: error: `STRDUP_AtoW' undeclared (first use this function) xs/StopFilter.xs:8: error: no matching function for call to `lucene::analysis::StopFilter::StopFilter(TokenStream*&, bool, const wchar_t**)' /usr/include/CLucene/analysis/Analyzers.h:134: note: candidates are: lucene::analysis::StopFilter::StopFilter(const lucene::analysis::StopFilter&) /usr/include/CLucene/analysis/Analyzers.h:149: note: lucene::analysis::StopFilter::StopFilter(lucene::analysis::TokenStream*, bool, lucene::util::CLSetList<const char*, lucene::util::Compare::TChar, lucene::util::Deletor::Dummy>*) /usr/include/CLucene/analysis/Analyzers.h:142: note: lucene::analysis::StopFilter::StopFilter(lucene::analysis::TokenStream*, bool, const char**) xs/CharTokenizer.xs: In function `void XS_Lucene__Analysis__CharTokenizer_new(CV*)': xs/CharTokenizer.xs:6: error: cannot allocate an object of type `PerlCharTokenizer' xs/CharTokenizer.xs:6: error: because the following virtual functions are abstract: /usr/include/CLucene/analysis/Analyzers.h:32: error: virtual bool lucene::analysis::CharTokenizer::isTokenChar(char) const xs/Token.xs: In function `void XS_Lucene__Analysis__Token_new(CV*)': xs/Token.xs:10: error: no matching function for call to `lucene::analysis::Token::Token(wchar_t*&, int32_t&, int32_t&, wchar_t*&)' /usr/include/CLucene/analysis/AnalysisHeader.h:33: note: candidates are: lucene::analysis::Token::Token(const lucene::analysis::Token&) /usr/include/CLucene/analysis/AnalysisHeader.h:53: note: lucene::analysis::Token::Token(const char*, int32_t, int32_t, const char*) /usr/include/CLucene/analysis/AnalysisHeader.h:50: note: lucene::analysis::Token::Token() xs/Token.xs: In function `void XS_Lucene__Analysis__Token_set(CV*)': xs/Token.xs:28: error: no matching function for call to `lucene::analysis::Token::set(wchar_t*&, int32_t&, int32_t&, wchar_t*&)' /usr/include/CLucene/analysis/AnalysisHeader.h:54: note: candidates are: void lucene::analysis::Token::set(const char*, int32_t, int32_t, const char*) xs/Token.xs: In function `void XS_Lucene__Analysis__Token_termText(CV*)': xs/Token.xs:64: error: cannot convert `const char*' to `const wchar_t*' in assignment xs/Token.xs: In function `void XS_Lucene__Analysis__Token_setText(CV*)': xs/Token.xs:87: error: no matching function for call to `lucene::analysis::Token::setText(const wchar_t*&)' /usr/include/CLucene/analysis/AnalysisHeader.h:86: note: candidates are: void lucene::analysis::Token::setText(const char*) xs/Token.xs: In function `void XS_Lucene__Analysis__Token_type(CV*)': xs/Token.xs:123: error: cannot convert `const char*' to `const wchar_t*' in assignment xs/Token.xs: In function `void XS_Lucene__Analysis__Token_setType(CV*)': xs/Token.xs:132: error: no matching function for call to `lucene::analysis::Token::setType(const wchar_t*&)' /usr/include/CLucene/analysis/AnalysisHeader.h:108: note: candidates are: void lucene::analysis::Token::setType(const char*) xs/Reader.xs: In function `void XS_Lucene__Utils__Reader_read(CV*)': xs/Reader.xs:19: error: no matching function for call to `lucene::util::Reader::read(const wchar_t*&)' /usr/include/CLucene/util/Reader.h:38: note: candidates are: int lucene::util::Reader::read() /usr/include/CLucene/util/Reader.h:51: note: int32_t lucene::util::Reader::read(const char*&) /usr/include/CLucene/util/Reader.h:58: note: int32_t lucene::util::Reader::read(const char*&, int32_t) xs/Reader.xs:31: error: no matching function for call to `lucene::util::Reader::read(const wchar_t*&, int32_t&)' /usr/include/CLucene/util/Reader.h:38: note: candidates are: int lucene::util::Reader::read() /usr/include/CLucene/util/Reader.h:51: note: int32_t lucene::util::Reader::read(const char*&) /usr/include/CLucene/util/Reader.h:58: note: int32_t lucene::util::Reader::read(const char*&, int32_t) *** Error code 1 make: Fatal error: Command failed for target `Lucene.o' Some help would be very appreciated. Newton |
From: Garth H. <ga...@th...> - 2009-01-30 20:48:58
|
Lucene doesn't seem to be correctly finding and identifying my installation of clucene on x86_64. Here are my specs: OS: Fedora Core 9 $ uname -a Linux localhost.localdomain 2.6.25.6-55.fc9.x86_64 #1 SMP Tue Jun 10 16:05:21 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux Perl: 5.10 $ perl -v This is perl, v5.10.0 built for x86_64-linux-thread-multi Installation of clucene: $ sudo yum install clucene Package clucene-core-0.9.20-4.fc9.x86_64 already installed and latest version $ sudo yum install clucene-core-devel Package clucene-core-devel-0.9.20-4.fc9.x86_64 already installed and latest version Installation of Lucene from CPAN: $ wget http://search.cpan.org/CPAN/authors/id/T/TB/TBUSCH/Lucene-0.18.tar.gz $ tar xvfz Lucene-0.18.tar.gz $ cd Lucene-0.18 $ perl Makefile.PL couldn't find clucene config file at Makefile.PL line 34. Further info: $ ll /usr/include/CLucene total 92K drwxr-xr-x 11 root root 4.0K 2009-01-13 12:37 . drwxr-xr-x 125 root root 12K 2009-01-13 12:28 .. drwxr-xr-x 3 root root 4.0K 2009-01-13 12:28 analysis -rw-r--r-- 1 root root 2.8K 2008-02-10 21:31 CLBackwards.h -rw-r--r-- 1 root root 13K 2008-02-10 21:31 CLConfig.h drwxr-xr-x 2 root root 4.0K 2009-01-13 12:28 config drwxr-xr-x 2 root root 4.0K 2009-01-13 12:28 debug drwxr-xr-x 2 root root 4.0K 2009-01-13 12:28 document drwxr-xr-x 2 root root 4.0K 2009-01-13 12:28 index -rw-r--r-- 1 root root 2.1K 2008-02-10 21:31 LuceneThreads.h drwxr-xr-x 2 root root 4.0K 2009-01-13 12:28 queryParser drwxr-xr-x 2 root root 4.0K 2009-01-13 12:28 search -rw-r--r-- 1 root root 14K 2008-02-10 21:31 StdHeader.h drwxr-xr-x 2 root root 4.0K 2009-01-13 12:28 store drwxr-xr-x 2 root root 4.0K 2009-01-13 12:28 util |
From: Thibaut H. <thi...@to...> - 2008-07-22 16:46:51
|
Hi, I tried to use Lucene::Search::FuzzyQuery. I look at a C++ code that seems to work to write this perl code: my $store = Lucene::Store::FSDirectory->getDirectory($store_dir, 0); my $searcher = new Lucene::Search::IndexSearcher($store); my $term = new Lucene::Index::Term("definition_content", $local_query_string); my $fuzz = new Lucene::Search::FuzzyQuery($term); my $hits = $searcher->search($fuzz); my $num_hits = $hits->length(); Link to the C++ code: http://www.mail-archive.com/luc...@in.../msg00928.html Unfortunately I have no results even if $local_query_string is a well-spelled word. Is there someone who has already used FuzzyQuery and has succeeded to make it work? Or does anybody have any idea for what is wrong in my code? Thibaut |
From: Seth R. <set...@gm...> - 2008-05-12 18:53:48
|
Thanks for the advice. I thought perhaps there was some design decision that either made that function inaccessible or uncessary. Most of what I need I can get via Document->toString() and some regexs - however, it would be more convenient and probably safer to implement the fields method from CLucene. Seth On Mon, May 12, 2008 at 12:33 PM, Thomas Busch <tho...@us...> wrote: > Hi Seth, > > I think this could be easily achieved by patching one of > the .xs files. > > Thomas. > > > > Quoting Seth Russell <set...@gm...>: > > > > > > > > > > I'm looking at the source code for CLucene (0.9.20) and see that there > > is a function that seems to be very handy when one doesn't know > > exactly what type of documents one is dealing with (say if you want to > > 'explore' the index): > > > > /** Returns an Enumeration of all the fields in a document. */ > > DocumentFieldEnumeration* fields() const; > > > > When I attempt to access that method via the following perl code > > > > #file system store > > my $store = Lucene::Store::FSDirectory->getDirectory("/home/me/lucene", > 0); > > > > my $reader = Lucene::Index::IndexReader->open($store); > > > > # get number of docs in index > > my $num_docs = $reader->numDocs(); > > print "Found $num_docs in the index\n"; > > # get the nth document > > for (my $count = 0; $count < $num_docs ; $count++) { > > my $document = $reader->document($count); > > my $fields = $document->fields; > > print Dumper($fields); > > } > > > > I get this error: > > > > Can't locate object method "fields" via package "Lucene::Document" > > > > Am I doing something wrong here, or is this method just not accessible > > via Lucene.pm? > > > > Thanks, > > > > Seth > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > _______________________________________________ > > Clucene-perl mailing list > > Clu...@li... > > https://lists.sourceforge.net/lists/listinfo/clucene-perl > > > > > > > > |
From: Seth R. <set...@gm...> - 2008-05-10 21:12:05
|
I'm looking at the source code for CLucene (0.9.20) and see that there is a function that seems to be very handy when one doesn't know exactly what type of documents one is dealing with (say if you want to 'explore' the index): /** Returns an Enumeration of all the fields in a document. */ DocumentFieldEnumeration* fields() const; When I attempt to access that method via the following perl code #file system store my $store = Lucene::Store::FSDirectory->getDirectory("/home/me/lucene", 0); my $reader = Lucene::Index::IndexReader->open($store); # get number of docs in index my $num_docs = $reader->numDocs(); print "Found $num_docs in the index\n"; # get the nth document for (my $count = 0; $count < $num_docs ; $count++) { my $document = $reader->document($count); my $fields = $document->fields; print Dumper($fields); } I get this error: Can't locate object method "fields" via package "Lucene::Document" Am I doing something wrong here, or is this method just not accessible via Lucene.pm? Thanks, Seth |
From: Sebastien C. <Seb...@to...> - 2007-12-12 10:38:06
|
Bonjour, I wonder if is it possible to querying a Lucene index using numeric test. For example here are 2 simple Xml files: <foo name="toto"> <start>10</start> <end>50</end> </foo> <foo name="titi"> <start>15</start> <end>60</end> </foo> I would like to be able to retrieve only the second one using such a query as "start > 12" How can I do ? Merci, Sebastien |