You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(16) |
Jul
(56) |
Aug
(2) |
Sep
(62) |
Oct
(71) |
Nov
(45) |
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(12) |
Feb
(22) |
Mar
|
Apr
(62) |
May
(15) |
Jun
(57) |
Jul
(4) |
Aug
(24) |
Sep
(7) |
Oct
(34) |
Nov
(81) |
Dec
(41) |
2005 |
Jan
(70) |
Feb
(51) |
Mar
(46) |
Apr
(16) |
May
(22) |
Jun
(34) |
Jul
(23) |
Aug
(13) |
Sep
(43) |
Oct
(42) |
Nov
(54) |
Dec
(68) |
2006 |
Jan
(81) |
Feb
(43) |
Mar
(64) |
Apr
(141) |
May
(37) |
Jun
(101) |
Jul
(112) |
Aug
(32) |
Sep
(85) |
Oct
(63) |
Nov
(84) |
Dec
(81) |
2007 |
Jan
(25) |
Feb
(64) |
Mar
(46) |
Apr
(28) |
May
(14) |
Jun
(42) |
Jul
(19) |
Aug
(34) |
Sep
(29) |
Oct
(25) |
Nov
(12) |
Dec
(9) |
2008 |
Jan
(15) |
Feb
(34) |
Mar
(37) |
Apr
(23) |
May
(18) |
Jun
(47) |
Jul
(28) |
Aug
(61) |
Sep
(29) |
Oct
(48) |
Nov
(24) |
Dec
(79) |
2009 |
Jan
(48) |
Feb
(50) |
Mar
(28) |
Apr
(10) |
May
(51) |
Jun
(22) |
Jul
(125) |
Aug
(29) |
Sep
(38) |
Oct
(29) |
Nov
(58) |
Dec
(32) |
2010 |
Jan
(15) |
Feb
(10) |
Mar
(12) |
Apr
(64) |
May
(4) |
Jun
(81) |
Jul
(41) |
Aug
(82) |
Sep
(84) |
Oct
(35) |
Nov
(43) |
Dec
(26) |
2011 |
Jan
(59) |
Feb
(25) |
Mar
(23) |
Apr
(14) |
May
(22) |
Jun
(8) |
Jul
(5) |
Aug
(20) |
Sep
(10) |
Oct
(12) |
Nov
(29) |
Dec
(7) |
2012 |
Jan
(1) |
Feb
(22) |
Mar
(9) |
Apr
(5) |
May
(2) |
Jun
|
Jul
(6) |
Aug
(2) |
Sep
|
Oct
(5) |
Nov
(9) |
Dec
(10) |
2013 |
Jan
(9) |
Feb
(3) |
Mar
(2) |
Apr
(4) |
May
(2) |
Jun
(1) |
Jul
(2) |
Aug
(5) |
Sep
|
Oct
(3) |
Nov
(3) |
Dec
(2) |
2014 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
(10) |
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(3) |
2015 |
Jan
(8) |
Feb
(3) |
Mar
(7) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(3) |
Dec
|
2016 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(8) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Šplíchal J. <spl...@to...> - 2011-01-21 12:59:13
|
Hello, I found a and corrected bug in MultiLevelSkipListReader::init method. This bug is serious but quite simple to correct so it would be great to merge the fix to master. I uploaded the fix to the highlighter branch as it is necessary for the new position based highlighting feature. Jiri -- Jiří Šplíchal TOVEK, spol. s r.o. spl...@to... <mailto:spl...@to...> +420 606671930 |
From: Šplíchal J. <spl...@to...> - 2011-01-19 14:15:24
|
Hello, I created a new branch with a simple fix of a memory leak caused by constructor of MultipleTermPositions::TermPositionsQueue. Jiri |
From: muhammad i. <m.i...@gm...> - 2011-01-15 22:03:56
|
Hello Jiri, I am grateful for you. and I want to thank you for your work the SpanHighlightScorer is really amazing to me and it get me out of many problems I faced. Thank you From: ?pl?chal Ji?? <spl...@to...> > > Hello Mohammad, > > > > the new queryscorer is able to rewrite the highlighting queries itself. You > have to allow it while creating it: > > > > // Create token stream from the text you want to be highlighted. > fieldName is name of the field that is being highlighted > > // only the relevant part of the query is used. > > StringReader reader( text ); > > CachingTokenFilter tokenStream( analyzer.tokenStream( fieldName, &reader > ), true ); > > > > // set bAutoRewriteQueries=true to allow rewriting highlighting queries > and if you use only standard query objects > > // use the default extractor > > SpanHighlightScorer spanScorer( true ); > > > > // initialize the query scorer with the ORIGINAL query ? NOT REWRITTEN > one. This query > > // should contain the WildCardQuery, not the ConstantScoreQuery! > > spanScorer.init( query, fieldName, &tokenStream ); > > > > // reset the token stream as it has been used by the scorer and we will > need it in the highlighter too > > tokenStream.reset(); > > > > // Using the hilghlighter is the same as with the basis Highlight > scorer: > > // Instantiate it with formatter and scorer, set fragmenter and call one > of its methos, ie. getBestFragments > > SimpleFragmenter fragmenter( fragmentSize ); > > Highlighter highlighter( &formatter, &spanScorer ); > > highlighter.setTextFragmenter( &fragmenter ); > > TCHAR * hilited = highlighter.getBestFragments( &tokenStream, text, > maxFragments, _T( "..." )); > > > > The query will be rewritten within the call spanScorer.init(?) Typically, > your documents do not contain as many different words > > that would match your wildcard query as the whole index and so the > probability that your query matches more than MAX CLAUSE > > different words is much less. > > > > Is it possible that your wildcard matches more than MAX CLAUSE different > word in one document? > > > > Jiri > > Mohammad Ismael |
From: Ahmed S. <ci7...@gm...> - 2011-01-14 18:18:39
|
I'm using CLucene from git, just forget about qt. i have comiled clucene (using mingw) on another computer and it compile correctly, but on my computer i get this problem. Ahmed 2011/1/14, Ben van Klinken <bva...@gm...>: > Perhaps asking Qt might be better? If they have made changes to > CLucene then they should know what's wrong > > Ben > > On Wed, Jan 12, 2011 at 7:56 PM, Ahmed Saidi <ci7...@gm...> wrote: >> Yes, i want to use the unicode version. >> When installing Qt SDK, it install mingw, any way i have just >> installed the last mingw version from their website but stell have the >> same problem. >> >> Ahmed >> >> 2011/1/12, Ben van Klinken <bva...@gm...>: >>> ok, good. But i suspect you want to build in unicode mode? >>> >>> looks pretty good to me - tchar and _T isn't being touched - so >>> default tchar.h behaviour should be that TCHAR is defined as wchar_t >>> and _T as L ## x >>> >>> but reading back your mail - what do you mean the 'qt version'? I'm >>> not aware of what QT did with clucene? >>> >>> ben >>> >>> On Tue, Jan 11, 2011 at 9:00 PM, Ahmed Saidi <ci7...@gm...> wrote: >>>> here is _clucene-config.h: >>>> http://pastebin.com/Yb8mNkiK >>>> and clucene-config.h: >>>> http://pastebin.com/YuSnMpm9 >>>> >>>> i think that ming has a tchar.h, because cmake print this: >>>> Looking for C++ include tchar.h - found >>>> >>>> if i enable acsii mode it compile correctly >>>> >>>> 2011/1/10 Ben van Klinken <bva...@gm...> >>>>> >>>>> I don't have a windows machine to try this out, so i'm guessing a >>>>> bit... i did get it working a while back... but you know how these >>>>> things go >>>>> >>>>> looks like there's something wrong with the _T symbol... >>>>> >>>>> >>>>> The line: >>>>> const TCHAR* _LUCENE_BLANK_STRING=_T(""); >>>>> >>>>> _T("") should be returning actually L"". There are some things that >>>>> those clucene-config.h file do if it think it needs to. I'm not sure >>>>> if ming has tchar.h (which normally defines _T on windows)? >>>>> >>>>> can you give me your src/shared/CLucene/_clucene-config.h, >>>>> clucene-config.h in your build directory. i'm looking for what it does >>>>> with the _T symbol.. also let me know if there is a tchar.h in the >>>>> mingw include path >>>>> >>>>> >>>>> Cheers >>>>> ben >>>>> >>>>> >>>>> On Thu, Jan 6, 2011 at 8:37 PM, Ahmed Saidi <ci7...@gm...> wrote: >>>>> > Here is what cmake print out: >>>>> > http://pastebin.com/4KPZeFbB >>>>> > mingw32-make: >>>>> > http://pastebin.com/JFX5XzJX >>>>> > >>>>> > I am using the mingw version distributed along with qt 4.7 >>>>> > >>>>> > Ahmed >>>>> > 2011/1/6 Ben van Klinken <bva...@gm...> >>>>> >> >>>>> >> did you configure using cmake? what did cmake print out? turn on >>>>> >> verbose (run cmake using -DCMAKE_VERBOSE_MAKEFILE=ON), or use the >>>>> >> cmake gui. so that we can see what parameters are being passed in. >>>>> >> looks to me like ming is being compiled in ascii mode. >>>>> >> >>>>> >> ben >>>>> >> >>>>> >> On Tue, Jan 4, 2011 at 7:28 PM, Ahmed nusha <ci7...@gm...> >>>>> >> wrote: >>>>> >> > I'm trying to compile clucene under windows and i get the >>>>> >> > following >>>>> >> > errors: >>>>> >> > >>>>> >> > C:\clucene_mingw-build>mingw32-make >>>>> >> > [ 0%] Building CXX object >>>>> >> > src/shared/CMakeFiles/clucene-shared.dir/CLucene/SharedHeader.obj >>>>> >> > C:\clucene\src\shared\CLucene\SharedHeader.cpp:16: error: cannot >>>>> >> > convert >>>>> >> > 'const char*' to 'const TCHAR*' in initialization >>>>> >> > mingw32-make[2]: *** >>>>> >> > [src/shared/CMakeFiles/clucene-shared.dir/CLucene/SharedHeader.obj] >>>>> >> > Error 1 >>>>> >> > mingw32-make[1]: *** >>>>> >> > [src/shared/CMakeFiles/clucene-shared.dir/all] >>>>> >> > Error 2 >>>>> >> > mingw32-make: *** [all] Error 2 >>>>> >> > >>>>> >> > what is the problem? >>>>> >> > >>>>> >> > Ahmed. >>>>> >> > >>>>> >> > Itamar Syn-Hershko <itamar@...> writes: >>>>> >> > >>>>> >> >> >>>>> >> >> It should compile with MingW. What compile errors do you get? >>>>> >> >> >>>>> >> >> Itamar. >>>>> >> >> >>>>> >> >> On 1/8/2010 10:17 PM, Ahmed wrote: >>>>> >> >> > hi, >>>>> >> >> > >>>>> >> >> > Can compile CLucene 2.3.2 under windows using MingW ? >>>>> >> >> > I tried that and i get a lot of errors. >>>>> >> >> > >>>>> >> >> > Ahmed >>>>> >> >> > >>>>> >> >> > >>>>> >> >> > >>>>> >> >> > >>>>> >> >> > >>>>> >> >> > ------------------------------------------------------------------------------ >>>>> >> >> > The Palm PDK Hot Apps Program offers developers who use the >>>>> >> >> > Plug-In Development Kit to bring their C/C++ apps to Palm for a >>>>> >> >> > share >>>>> >> >> > of $1 Million in cash or HP Products. Visit us here for more >>>>> >> >> > details: >>>>> >> >> > http://p.sf.net/sfu/dev2dev-palm >>>>> >> >> > _______________________________________________ >>>>> >> >> > CLucene-developers mailing list >>>>> >> >> > CLucene-developers@... >>>>> >> >> > https://lists.sourceforge.net/lists/listinfo/clucene-developers >>>>> >> >> > >>>>> >> >> > >>>>> >> >> > >>>>> >> >> >>>>> >> >> >>>>> >> >> >>>>> >> >> >>>>> >> >> ------------------------------------------------------------------------------ >>>>> >> >> The Palm PDK Hot Apps Program offers developers who use the >>>>> >> >> Plug-In Development Kit to bring their C/C++ apps to Palm for a >>>>> >> >> share >>>>> >> >> of $1 Million in cash or HP Products. Visit us here for more >>>>> >> >> details: >>>>> >> >> http://p.sf.net/sfu/dev2dev-palm >>>>> >> >> >>>>> >> > >>>>> >> > >>>>> >> > >>>>> >> > >>>>> >> > ------------------------------------------------------------------------------ >>>>> >> > Learn how Oracle Real Application Clusters (RAC) One Node allows >>>>> >> > customers >>>>> >> > to consolidate database storage, standardize their database >>>>> >> > environment, >>>>> >> > and, >>>>> >> > should the need arise, upgrade to a full multi-node Oracle RAC >>>>> >> > database >>>>> >> > without downtime or disruption >>>>> >> > http://p.sf.net/sfu/oracle-sfdevnl >>>>> >> > _______________________________________________ >>>>> >> > CLucene-developers mailing list >>>>> >> > CLu...@li... >>>>> >> > https://lists.sourceforge.net/lists/listinfo/clucene-developers >>>>> >> > >>>>> >> > >>>>> >> >>>>> >> >>>>> >> >>>>> >> ------------------------------------------------------------------------------ >>>>> >> Learn how Oracle Real Application Clusters (RAC) One Node allows >>>>> >> customers >>>>> >> to consolidate database storage, standardize their database >>>>> >> environment, >>>>> >> and, >>>>> >> should the need arise, upgrade to a full multi-node Oracle RAC >>>>> >> database >>>>> >> without downtime or disruption >>>>> >> http://p.sf.net/sfu/oracle-sfdevnl >>>>> >> _______________________________________________ >>>>> >> CLucene-developers mailing list >>>>> >> CLu...@li... >>>>> >> https://lists.sourceforge.net/lists/listinfo/clucene-developers >>>>> > >>>>> > >>>>> > >>>>> > ------------------------------------------------------------------------------ >>>>> > Learn how Oracle Real Application Clusters (RAC) One Node allows >>>>> > customers >>>>> > to consolidate database storage, standardize their database >>>>> > environment, >>>>> > and, >>>>> > should the need arise, upgrade to a full multi-node Oracle RAC >>>>> > database >>>>> > without downtime or disruption >>>>> > http://p.sf.net/sfu/oracle-sfdevnl >>>>> > _______________________________________________ >>>>> > CLucene-developers mailing list >>>>> > CLu...@li... >>>>> > https://lists.sourceforge.net/lists/listinfo/clucene-developers >>>>> > >>>>> > >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Gaining the trust of online customers is vital for the success of any >>>>> company >>>>> that requires sensitive data to be transmitted over the Web. Learn >>>>> how >>>>> to >>>>> best implement a security strategy that keeps consumers' information >>>>> secure >>>>> and instills the confidence they need to proceed with transactions. >>>>> http://p.sf.net/sfu/oracle-sfdevnl >>>>> _______________________________________________ >>>>> CLucene-developers mailing list >>>>> CLu...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/clucene-developers >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Gaining the trust of online customers is vital for the success of any >>>> company >>>> that requires sensitive data to be transmitted over the Web. Learn how >>>> to >>>> best implement a security strategy that keeps consumers' information >>>> secure >>>> and instills the confidence they need to proceed with transactions. >>>> http://p.sf.net/sfu/oracle-sfdevnl >>>> _______________________________________________ >>>> CLucene-developers mailing list >>>> CLu...@li... >>>> https://lists.sourceforge.net/lists/listinfo/clucene-developers >>>> >>>> >>> >>> ------------------------------------------------------------------------------ >>> Protect Your Site and Customers from Malware Attacks >>> Learn about various malware tactics and how to avoid them. Understand >>> malware threats, the impact they can have on your business, and how you >>> can protect your company and customers by using code signing. >>> http://p.sf.net/sfu/oracle-sfdevnl >>> _______________________________________________ >>> CLucene-developers mailing list >>> CLu...@li... >>> https://lists.sourceforge.net/lists/listinfo/clucene-developers >>> >> >> -- >> Envoyé avec mon mobile >> >> ------------------------------------------------------------------------------ >> Protect Your Site and Customers from Malware Attacks >> Learn about various malware tactics and how to avoid them. Understand >> malware threats, the impact they can have on your business, and how you >> can protect your company and customers by using code signing. >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> CLucene-developers mailing list >> CLu...@li... >> https://lists.sourceforge.net/lists/listinfo/clucene-developers >> > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > CLucene-developers mailing list > CLu...@li... > https://lists.sourceforge.net/lists/listinfo/clucene-developers > -- Envoyé avec mon mobile |
From: Šplíchal J. <spl...@to...> - 2011-01-14 07:56:29
|
Hello Mohammad, the new queryscorer is able to rewrite the highlighting queries itself. You have to allow it while creating it: // Create token stream from the text you want to be highlighted. fieldName is name of the field that is being highlighted // only the relevant part of the query is used. StringReader reader( text ); CachingTokenFilter tokenStream( analyzer.tokenStream( fieldName, &reader ), true ); // set bAutoRewriteQueries=true to allow rewriting highlighting queries and if you use only standard query objects // use the default extractor SpanHighlightScorer spanScorer( true ); // initialize the query scorer with the ORIGINAL query – NOT REWRITTEN one. This query // should contain the WildCardQuery, not the ConstantScoreQuery! spanScorer.init( query, fieldName, &tokenStream ); // reset the token stream as it has been used by the scorer and we will need it in the highlighter too tokenStream.reset(); // Using the hilghlighter is the same as with the basis Highlight scorer: // Instantiate it with formatter and scorer, set fragmenter and call one of its methos, ie. getBestFragments SimpleFragmenter fragmenter( fragmentSize ); Highlighter highlighter( &formatter, &spanScorer ); highlighter.setTextFragmenter( &fragmenter ); TCHAR * hilited = highlighter.getBestFragments( &tokenStream, text, maxFragments, _T( "..." )); The query will be rewritten within the call spanScorer.init(…) Typically, your documents do not contain as many different words that would match your wildcard query as the whole index and so the probability that your query matches more than MAX CLAUSE different words is much less. Is it possible that your wildcard matches more than MAX CLAUSE different word in one document? Jiri From: muhammad ismael [mailto:m.i...@gm...] Sent: Monday, January 10, 2011 4:21 PM To: clu...@li... Subject: Re: [CLucene-dev] CLucene-developers Digest, Vol 57, Issue 9 Hello Jiri, I am sorry , it seems that i should read more in GIT. I got the SpanHighlightScorer but how can i use it to highlight terms without warring about the maxClauseCount ? thank you Mohammad Ismael |
From: Ben v. K. <bva...@gm...> - 2011-01-14 02:13:57
|
Perhaps asking Qt might be better? If they have made changes to CLucene then they should know what's wrong Ben On Wed, Jan 12, 2011 at 7:56 PM, Ahmed Saidi <ci7...@gm...> wrote: > Yes, i want to use the unicode version. > When installing Qt SDK, it install mingw, any way i have just > installed the last mingw version from their website but stell have the > same problem. > > Ahmed > > 2011/1/12, Ben van Klinken <bva...@gm...>: >> ok, good. But i suspect you want to build in unicode mode? >> >> looks pretty good to me - tchar and _T isn't being touched - so >> default tchar.h behaviour should be that TCHAR is defined as wchar_t >> and _T as L ## x >> >> but reading back your mail - what do you mean the 'qt version'? I'm >> not aware of what QT did with clucene? >> >> ben >> >> On Tue, Jan 11, 2011 at 9:00 PM, Ahmed Saidi <ci7...@gm...> wrote: >>> here is _clucene-config.h: >>> http://pastebin.com/Yb8mNkiK >>> and clucene-config.h: >>> http://pastebin.com/YuSnMpm9 >>> >>> i think that ming has a tchar.h, because cmake print this: >>> Looking for C++ include tchar.h - found >>> >>> if i enable acsii mode it compile correctly >>> >>> 2011/1/10 Ben van Klinken <bva...@gm...> >>>> >>>> I don't have a windows machine to try this out, so i'm guessing a >>>> bit... i did get it working a while back... but you know how these >>>> things go >>>> >>>> looks like there's something wrong with the _T symbol... >>>> >>>> >>>> The line: >>>> const TCHAR* _LUCENE_BLANK_STRING=_T(""); >>>> >>>> _T("") should be returning actually L"". There are some things that >>>> those clucene-config.h file do if it think it needs to. I'm not sure >>>> if ming has tchar.h (which normally defines _T on windows)? >>>> >>>> can you give me your src/shared/CLucene/_clucene-config.h, >>>> clucene-config.h in your build directory. i'm looking for what it does >>>> with the _T symbol.. also let me know if there is a tchar.h in the >>>> mingw include path >>>> >>>> >>>> Cheers >>>> ben >>>> >>>> >>>> On Thu, Jan 6, 2011 at 8:37 PM, Ahmed Saidi <ci7...@gm...> wrote: >>>> > Here is what cmake print out: >>>> > http://pastebin.com/4KPZeFbB >>>> > mingw32-make: >>>> > http://pastebin.com/JFX5XzJX >>>> > >>>> > I am using the mingw version distributed along with qt 4.7 >>>> > >>>> > Ahmed >>>> > 2011/1/6 Ben van Klinken <bva...@gm...> >>>> >> >>>> >> did you configure using cmake? what did cmake print out? turn on >>>> >> verbose (run cmake using -DCMAKE_VERBOSE_MAKEFILE=ON), or use the >>>> >> cmake gui. so that we can see what parameters are being passed in. >>>> >> looks to me like ming is being compiled in ascii mode. >>>> >> >>>> >> ben >>>> >> >>>> >> On Tue, Jan 4, 2011 at 7:28 PM, Ahmed nusha <ci7...@gm...> >>>> >> wrote: >>>> >> > I'm trying to compile clucene under windows and i get the following >>>> >> > errors: >>>> >> > >>>> >> > C:\clucene_mingw-build>mingw32-make >>>> >> > [ 0%] Building CXX object >>>> >> > src/shared/CMakeFiles/clucene-shared.dir/CLucene/SharedHeader.obj >>>> >> > C:\clucene\src\shared\CLucene\SharedHeader.cpp:16: error: cannot >>>> >> > convert >>>> >> > 'const char*' to 'const TCHAR*' in initialization >>>> >> > mingw32-make[2]: *** >>>> >> > [src/shared/CMakeFiles/clucene-shared.dir/CLucene/SharedHeader.obj] >>>> >> > Error 1 >>>> >> > mingw32-make[1]: *** [src/shared/CMakeFiles/clucene-shared.dir/all] >>>> >> > Error 2 >>>> >> > mingw32-make: *** [all] Error 2 >>>> >> > >>>> >> > what is the problem? >>>> >> > >>>> >> > Ahmed. >>>> >> > >>>> >> > Itamar Syn-Hershko <itamar@...> writes: >>>> >> > >>>> >> >> >>>> >> >> It should compile with MingW. What compile errors do you get? >>>> >> >> >>>> >> >> Itamar. >>>> >> >> >>>> >> >> On 1/8/2010 10:17 PM, Ahmed wrote: >>>> >> >> > hi, >>>> >> >> > >>>> >> >> > Can compile CLucene 2.3.2 under windows using MingW ? >>>> >> >> > I tried that and i get a lot of errors. >>>> >> >> > >>>> >> >> > Ahmed >>>> >> >> > >>>> >> >> > >>>> >> >> > >>>> >> >> > >>>> >> >> > >>>> >> >> > ------------------------------------------------------------------------------ >>>> >> >> > The Palm PDK Hot Apps Program offers developers who use the >>>> >> >> > Plug-In Development Kit to bring their C/C++ apps to Palm for a >>>> >> >> > share >>>> >> >> > of $1 Million in cash or HP Products. Visit us here for more >>>> >> >> > details: >>>> >> >> > http://p.sf.net/sfu/dev2dev-palm >>>> >> >> > _______________________________________________ >>>> >> >> > CLucene-developers mailing list >>>> >> >> > CLucene-developers@... >>>> >> >> > https://lists.sourceforge.net/lists/listinfo/clucene-developers >>>> >> >> > >>>> >> >> > >>>> >> >> > >>>> >> >> >>>> >> >> >>>> >> >> >>>> >> >> >>>> >> >> ------------------------------------------------------------------------------ >>>> >> >> The Palm PDK Hot Apps Program offers developers who use the >>>> >> >> Plug-In Development Kit to bring their C/C++ apps to Palm for a >>>> >> >> share >>>> >> >> of $1 Million in cash or HP Products. Visit us here for more >>>> >> >> details: >>>> >> >> http://p.sf.net/sfu/dev2dev-palm >>>> >> >> >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > ------------------------------------------------------------------------------ >>>> >> > Learn how Oracle Real Application Clusters (RAC) One Node allows >>>> >> > customers >>>> >> > to consolidate database storage, standardize their database >>>> >> > environment, >>>> >> > and, >>>> >> > should the need arise, upgrade to a full multi-node Oracle RAC >>>> >> > database >>>> >> > without downtime or disruption >>>> >> > http://p.sf.net/sfu/oracle-sfdevnl >>>> >> > _______________________________________________ >>>> >> > CLucene-developers mailing list >>>> >> > CLu...@li... >>>> >> > https://lists.sourceforge.net/lists/listinfo/clucene-developers >>>> >> > >>>> >> > >>>> >> >>>> >> >>>> >> >>>> >> ------------------------------------------------------------------------------ >>>> >> Learn how Oracle Real Application Clusters (RAC) One Node allows >>>> >> customers >>>> >> to consolidate database storage, standardize their database >>>> >> environment, >>>> >> and, >>>> >> should the need arise, upgrade to a full multi-node Oracle RAC >>>> >> database >>>> >> without downtime or disruption >>>> >> http://p.sf.net/sfu/oracle-sfdevnl >>>> >> _______________________________________________ >>>> >> CLucene-developers mailing list >>>> >> CLu...@li... >>>> >> https://lists.sourceforge.net/lists/listinfo/clucene-developers >>>> > >>>> > >>>> > >>>> > ------------------------------------------------------------------------------ >>>> > Learn how Oracle Real Application Clusters (RAC) One Node allows >>>> > customers >>>> > to consolidate database storage, standardize their database >>>> > environment, >>>> > and, >>>> > should the need arise, upgrade to a full multi-node Oracle RAC database >>>> > without downtime or disruption >>>> > http://p.sf.net/sfu/oracle-sfdevnl >>>> > _______________________________________________ >>>> > CLucene-developers mailing list >>>> > CLu...@li... >>>> > https://lists.sourceforge.net/lists/listinfo/clucene-developers >>>> > >>>> > >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Gaining the trust of online customers is vital for the success of any >>>> company >>>> that requires sensitive data to be transmitted over the Web. Learn how >>>> to >>>> best implement a security strategy that keeps consumers' information >>>> secure >>>> and instills the confidence they need to proceed with transactions. >>>> http://p.sf.net/sfu/oracle-sfdevnl >>>> _______________________________________________ >>>> CLucene-developers mailing list >>>> CLu...@li... >>>> https://lists.sourceforge.net/lists/listinfo/clucene-developers >>> >>> >>> ------------------------------------------------------------------------------ >>> Gaining the trust of online customers is vital for the success of any >>> company >>> that requires sensitive data to be transmitted over the Web. Learn how >>> to >>> best implement a security strategy that keeps consumers' information >>> secure >>> and instills the confidence they need to proceed with transactions. >>> http://p.sf.net/sfu/oracle-sfdevnl >>> _______________________________________________ >>> CLucene-developers mailing list >>> CLu...@li... >>> https://lists.sourceforge.net/lists/listinfo/clucene-developers >>> >>> >> >> ------------------------------------------------------------------------------ >> Protect Your Site and Customers from Malware Attacks >> Learn about various malware tactics and how to avoid them. Understand >> malware threats, the impact they can have on your business, and how you >> can protect your company and customers by using code signing. >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> CLucene-developers mailing list >> CLu...@li... >> https://lists.sourceforge.net/lists/listinfo/clucene-developers >> > > -- > Envoyé avec mon mobile > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > CLucene-developers mailing list > CLu...@li... > https://lists.sourceforge.net/lists/listinfo/clucene-developers > |
From: Ahmed S. <ci7...@gm...> - 2011-01-12 09:56:55
|
Yes, i want to use the unicode version. When installing Qt SDK, it install mingw, any way i have just installed the last mingw version from their website but stell have the same problem. Ahmed 2011/1/12, Ben van Klinken <bva...@gm...>: > ok, good. But i suspect you want to build in unicode mode? > > looks pretty good to me - tchar and _T isn't being touched - so > default tchar.h behaviour should be that TCHAR is defined as wchar_t > and _T as L ## x > > but reading back your mail - what do you mean the 'qt version'? I'm > not aware of what QT did with clucene? > > ben > > On Tue, Jan 11, 2011 at 9:00 PM, Ahmed Saidi <ci7...@gm...> wrote: >> here is _clucene-config.h: >> http://pastebin.com/Yb8mNkiK >> and clucene-config.h: >> http://pastebin.com/YuSnMpm9 >> >> i think that ming has a tchar.h, because cmake print this: >> Looking for C++ include tchar.h - found >> >> if i enable acsii mode it compile correctly >> >> 2011/1/10 Ben van Klinken <bva...@gm...> >>> >>> I don't have a windows machine to try this out, so i'm guessing a >>> bit... i did get it working a while back... but you know how these >>> things go >>> >>> looks like there's something wrong with the _T symbol... >>> >>> >>> The line: >>> const TCHAR* _LUCENE_BLANK_STRING=_T(""); >>> >>> _T("") should be returning actually L"". There are some things that >>> those clucene-config.h file do if it think it needs to. I'm not sure >>> if ming has tchar.h (which normally defines _T on windows)? >>> >>> can you give me your src/shared/CLucene/_clucene-config.h, >>> clucene-config.h in your build directory. i'm looking for what it does >>> with the _T symbol.. also let me know if there is a tchar.h in the >>> mingw include path >>> >>> >>> Cheers >>> ben >>> >>> >>> On Thu, Jan 6, 2011 at 8:37 PM, Ahmed Saidi <ci7...@gm...> wrote: >>> > Here is what cmake print out: >>> > http://pastebin.com/4KPZeFbB >>> > mingw32-make: >>> > http://pastebin.com/JFX5XzJX >>> > >>> > I am using the mingw version distributed along with qt 4.7 >>> > >>> > Ahmed >>> > 2011/1/6 Ben van Klinken <bva...@gm...> >>> >> >>> >> did you configure using cmake? what did cmake print out? turn on >>> >> verbose (run cmake using -DCMAKE_VERBOSE_MAKEFILE=ON), or use the >>> >> cmake gui. so that we can see what parameters are being passed in. >>> >> looks to me like ming is being compiled in ascii mode. >>> >> >>> >> ben >>> >> >>> >> On Tue, Jan 4, 2011 at 7:28 PM, Ahmed nusha <ci7...@gm...> >>> >> wrote: >>> >> > I'm trying to compile clucene under windows and i get the following >>> >> > errors: >>> >> > >>> >> > C:\clucene_mingw-build>mingw32-make >>> >> > [ 0%] Building CXX object >>> >> > src/shared/CMakeFiles/clucene-shared.dir/CLucene/SharedHeader.obj >>> >> > C:\clucene\src\shared\CLucene\SharedHeader.cpp:16: error: cannot >>> >> > convert >>> >> > 'const char*' to 'const TCHAR*' in initialization >>> >> > mingw32-make[2]: *** >>> >> > [src/shared/CMakeFiles/clucene-shared.dir/CLucene/SharedHeader.obj] >>> >> > Error 1 >>> >> > mingw32-make[1]: *** [src/shared/CMakeFiles/clucene-shared.dir/all] >>> >> > Error 2 >>> >> > mingw32-make: *** [all] Error 2 >>> >> > >>> >> > what is the problem? >>> >> > >>> >> > Ahmed. >>> >> > >>> >> > Itamar Syn-Hershko <itamar@...> writes: >>> >> > >>> >> >> >>> >> >> It should compile with MingW. What compile errors do you get? >>> >> >> >>> >> >> Itamar. >>> >> >> >>> >> >> On 1/8/2010 10:17 PM, Ahmed wrote: >>> >> >> > hi, >>> >> >> > >>> >> >> > Can compile CLucene 2.3.2 under windows using MingW ? >>> >> >> > I tried that and i get a lot of errors. >>> >> >> > >>> >> >> > Ahmed >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > ------------------------------------------------------------------------------ >>> >> >> > The Palm PDK Hot Apps Program offers developers who use the >>> >> >> > Plug-In Development Kit to bring their C/C++ apps to Palm for a >>> >> >> > share >>> >> >> > of $1 Million in cash or HP Products. Visit us here for more >>> >> >> > details: >>> >> >> > http://p.sf.net/sfu/dev2dev-palm >>> >> >> > _______________________________________________ >>> >> >> > CLucene-developers mailing list >>> >> >> > CLucene-developers@... >>> >> >> > https://lists.sourceforge.net/lists/listinfo/clucene-developers >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> ------------------------------------------------------------------------------ >>> >> >> The Palm PDK Hot Apps Program offers developers who use the >>> >> >> Plug-In Development Kit to bring their C/C++ apps to Palm for a >>> >> >> share >>> >> >> of $1 Million in cash or HP Products. Visit us here for more >>> >> >> details: >>> >> >> http://p.sf.net/sfu/dev2dev-palm >>> >> >> >>> >> > >>> >> > >>> >> > >>> >> > >>> >> > ------------------------------------------------------------------------------ >>> >> > Learn how Oracle Real Application Clusters (RAC) One Node allows >>> >> > customers >>> >> > to consolidate database storage, standardize their database >>> >> > environment, >>> >> > and, >>> >> > should the need arise, upgrade to a full multi-node Oracle RAC >>> >> > database >>> >> > without downtime or disruption >>> >> > http://p.sf.net/sfu/oracle-sfdevnl >>> >> > _______________________________________________ >>> >> > CLucene-developers mailing list >>> >> > CLu...@li... >>> >> > https://lists.sourceforge.net/lists/listinfo/clucene-developers >>> >> > >>> >> > >>> >> >>> >> >>> >> >>> >> ------------------------------------------------------------------------------ >>> >> Learn how Oracle Real Application Clusters (RAC) One Node allows >>> >> customers >>> >> to consolidate database storage, standardize their database >>> >> environment, >>> >> and, >>> >> should the need arise, upgrade to a full multi-node Oracle RAC >>> >> database >>> >> without downtime or disruption >>> >> http://p.sf.net/sfu/oracle-sfdevnl >>> >> _______________________________________________ >>> >> CLucene-developers mailing list >>> >> CLu...@li... >>> >> https://lists.sourceforge.net/lists/listinfo/clucene-developers >>> > >>> > >>> > >>> > ------------------------------------------------------------------------------ >>> > Learn how Oracle Real Application Clusters (RAC) One Node allows >>> > customers >>> > to consolidate database storage, standardize their database >>> > environment, >>> > and, >>> > should the need arise, upgrade to a full multi-node Oracle RAC database >>> > without downtime or disruption >>> > http://p.sf.net/sfu/oracle-sfdevnl >>> > _______________________________________________ >>> > CLucene-developers mailing list >>> > CLu...@li... >>> > https://lists.sourceforge.net/lists/listinfo/clucene-developers >>> > >>> > >>> >>> >>> ------------------------------------------------------------------------------ >>> Gaining the trust of online customers is vital for the success of any >>> company >>> that requires sensitive data to be transmitted over the Web. Learn how >>> to >>> best implement a security strategy that keeps consumers' information >>> secure >>> and instills the confidence they need to proceed with transactions. >>> http://p.sf.net/sfu/oracle-sfdevnl >>> _______________________________________________ >>> CLucene-developers mailing list >>> CLu...@li... >>> https://lists.sourceforge.net/lists/listinfo/clucene-developers >> >> >> ------------------------------------------------------------------------------ >> Gaining the trust of online customers is vital for the success of any >> company >> that requires sensitive data to be transmitted over the Web. Learn how >> to >> best implement a security strategy that keeps consumers' information >> secure >> and instills the confidence they need to proceed with transactions. >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> CLucene-developers mailing list >> CLu...@li... >> https://lists.sourceforge.net/lists/listinfo/clucene-developers >> >> > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > CLucene-developers mailing list > CLu...@li... > https://lists.sourceforge.net/lists/listinfo/clucene-developers > -- Envoyé avec mon mobile |
From: Ben v. K. <bva...@gm...> - 2011-01-12 02:44:09
|
ok, good. But i suspect you want to build in unicode mode? looks pretty good to me - tchar and _T isn't being touched - so default tchar.h behaviour should be that TCHAR is defined as wchar_t and _T as L ## x but reading back your mail - what do you mean the 'qt version'? I'm not aware of what QT did with clucene? ben On Tue, Jan 11, 2011 at 9:00 PM, Ahmed Saidi <ci7...@gm...> wrote: > here is _clucene-config.h: > http://pastebin.com/Yb8mNkiK > and clucene-config.h: > http://pastebin.com/YuSnMpm9 > > i think that ming has a tchar.h, because cmake print this: > Looking for C++ include tchar.h - found > > if i enable acsii mode it compile correctly > > 2011/1/10 Ben van Klinken <bva...@gm...> >> >> I don't have a windows machine to try this out, so i'm guessing a >> bit... i did get it working a while back... but you know how these >> things go >> >> looks like there's something wrong with the _T symbol... >> >> >> The line: >> const TCHAR* _LUCENE_BLANK_STRING=_T(""); >> >> _T("") should be returning actually L"". There are some things that >> those clucene-config.h file do if it think it needs to. I'm not sure >> if ming has tchar.h (which normally defines _T on windows)? >> >> can you give me your src/shared/CLucene/_clucene-config.h, >> clucene-config.h in your build directory. i'm looking for what it does >> with the _T symbol.. also let me know if there is a tchar.h in the >> mingw include path >> >> >> Cheers >> ben >> >> >> On Thu, Jan 6, 2011 at 8:37 PM, Ahmed Saidi <ci7...@gm...> wrote: >> > Here is what cmake print out: >> > http://pastebin.com/4KPZeFbB >> > mingw32-make: >> > http://pastebin.com/JFX5XzJX >> > >> > I am using the mingw version distributed along with qt 4.7 >> > >> > Ahmed >> > 2011/1/6 Ben van Klinken <bva...@gm...> >> >> >> >> did you configure using cmake? what did cmake print out? turn on >> >> verbose (run cmake using -DCMAKE_VERBOSE_MAKEFILE=ON), or use the >> >> cmake gui. so that we can see what parameters are being passed in. >> >> looks to me like ming is being compiled in ascii mode. >> >> >> >> ben >> >> >> >> On Tue, Jan 4, 2011 at 7:28 PM, Ahmed nusha <ci7...@gm...> wrote: >> >> > I'm trying to compile clucene under windows and i get the following >> >> > errors: >> >> > >> >> > C:\clucene_mingw-build>mingw32-make >> >> > [ 0%] Building CXX object >> >> > src/shared/CMakeFiles/clucene-shared.dir/CLucene/SharedHeader.obj >> >> > C:\clucene\src\shared\CLucene\SharedHeader.cpp:16: error: cannot >> >> > convert >> >> > 'const char*' to 'const TCHAR*' in initialization >> >> > mingw32-make[2]: *** >> >> > [src/shared/CMakeFiles/clucene-shared.dir/CLucene/SharedHeader.obj] >> >> > Error 1 >> >> > mingw32-make[1]: *** [src/shared/CMakeFiles/clucene-shared.dir/all] >> >> > Error 2 >> >> > mingw32-make: *** [all] Error 2 >> >> > >> >> > what is the problem? >> >> > >> >> > Ahmed. >> >> > >> >> > Itamar Syn-Hershko <itamar@...> writes: >> >> > >> >> >> >> >> >> It should compile with MingW. What compile errors do you get? >> >> >> >> >> >> Itamar. >> >> >> >> >> >> On 1/8/2010 10:17 PM, Ahmed wrote: >> >> >> > hi, >> >> >> > >> >> >> > Can compile CLucene 2.3.2 under windows using MingW ? >> >> >> > I tried that and i get a lot of errors. >> >> >> > >> >> >> > Ahmed >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> > ------------------------------------------------------------------------------ >> >> >> > The Palm PDK Hot Apps Program offers developers who use the >> >> >> > Plug-In Development Kit to bring their C/C++ apps to Palm for a >> >> >> > share >> >> >> > of $1 Million in cash or HP Products. Visit us here for more >> >> >> > details: >> >> >> > http://p.sf.net/sfu/dev2dev-palm >> >> >> > _______________________________________________ >> >> >> > CLucene-developers mailing list >> >> >> > CLucene-developers@... >> >> >> > https://lists.sourceforge.net/lists/listinfo/clucene-developers >> >> >> > >> >> >> > >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> >> The Palm PDK Hot Apps Program offers developers who use the >> >> >> Plug-In Development Kit to bring their C/C++ apps to Palm for a >> >> >> share >> >> >> of $1 Million in cash or HP Products. Visit us here for more >> >> >> details: >> >> >> http://p.sf.net/sfu/dev2dev-palm >> >> >> >> >> > >> >> > >> >> > >> >> > >> >> > ------------------------------------------------------------------------------ >> >> > Learn how Oracle Real Application Clusters (RAC) One Node allows >> >> > customers >> >> > to consolidate database storage, standardize their database >> >> > environment, >> >> > and, >> >> > should the need arise, upgrade to a full multi-node Oracle RAC >> >> > database >> >> > without downtime or disruption >> >> > http://p.sf.net/sfu/oracle-sfdevnl >> >> > _______________________________________________ >> >> > CLucene-developers mailing list >> >> > CLu...@li... >> >> > https://lists.sourceforge.net/lists/listinfo/clucene-developers >> >> > >> >> > >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Learn how Oracle Real Application Clusters (RAC) One Node allows >> >> customers >> >> to consolidate database storage, standardize their database >> >> environment, >> >> and, >> >> should the need arise, upgrade to a full multi-node Oracle RAC database >> >> without downtime or disruption >> >> http://p.sf.net/sfu/oracle-sfdevnl >> >> _______________________________________________ >> >> CLucene-developers mailing list >> >> CLu...@li... >> >> https://lists.sourceforge.net/lists/listinfo/clucene-developers >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > Learn how Oracle Real Application Clusters (RAC) One Node allows >> > customers >> > to consolidate database storage, standardize their database environment, >> > and, >> > should the need arise, upgrade to a full multi-node Oracle RAC database >> > without downtime or disruption >> > http://p.sf.net/sfu/oracle-sfdevnl >> > _______________________________________________ >> > CLucene-developers mailing list >> > CLu...@li... >> > https://lists.sourceforge.net/lists/listinfo/clucene-developers >> > >> > >> >> >> ------------------------------------------------------------------------------ >> Gaining the trust of online customers is vital for the success of any >> company >> that requires sensitive data to be transmitted over the Web. Learn how >> to >> best implement a security strategy that keeps consumers' information >> secure >> and instills the confidence they need to proceed with transactions. >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> CLucene-developers mailing list >> CLu...@li... >> https://lists.sourceforge.net/lists/listinfo/clucene-developers > > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any > company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > CLucene-developers mailing list > CLu...@li... > https://lists.sourceforge.net/lists/listinfo/clucene-developers > > |
From: Ahmed S. <ci7...@gm...> - 2011-01-11 11:01:08
|
here is _clucene-config.h: http://pastebin.com/Yb8mNkiK and clucene-config.h: http://pastebin.com/YuSnMpm9 i think that ming has a tchar.h, because cmake print this: Looking for C++ include tchar.h - found if i enable acsii mode it compile correctly 2011/1/10 Ben van Klinken <bva...@gm...> > I don't have a windows machine to try this out, so i'm guessing a > bit... i did get it working a while back... but you know how these > things go > > looks like there's something wrong with the _T symbol... > > > The line: > const TCHAR* _LUCENE_BLANK_STRING=_T(""); > > _T("") should be returning actually L"". There are some things that > those clucene-config.h file do if it think it needs to. I'm not sure > if ming has tchar.h (which normally defines _T on windows)? > > can you give me your src/shared/CLucene/_clucene-config.h, > clucene-config.h in your build directory. i'm looking for what it does > with the _T symbol.. also let me know if there is a tchar.h in the > mingw include path > > > Cheers > ben > > > On Thu, Jan 6, 2011 at 8:37 PM, Ahmed Saidi <ci7...@gm...> wrote: > > Here is what cmake print out: > > http://pastebin.com/4KPZeFbB > > mingw32-make: > > http://pastebin.com/JFX5XzJX > > > > I am using the mingw version distributed along with qt 4.7 > > > > Ahmed > > 2011/1/6 Ben van Klinken <bva...@gm...> > >> > >> did you configure using cmake? what did cmake print out? turn on > >> verbose (run cmake using -DCMAKE_VERBOSE_MAKEFILE=ON), or use the > >> cmake gui. so that we can see what parameters are being passed in. > >> looks to me like ming is being compiled in ascii mode. > >> > >> ben > >> > >> On Tue, Jan 4, 2011 at 7:28 PM, Ahmed nusha <ci7...@gm...> wrote: > >> > I'm trying to compile clucene under windows and i get the following > >> > errors: > >> > > >> > C:\clucene_mingw-build>mingw32-make > >> > [ 0%] Building CXX object > >> > src/shared/CMakeFiles/clucene-shared.dir/CLucene/SharedHeader.obj > >> > C:\clucene\src\shared\CLucene\SharedHeader.cpp:16: error: cannot > convert > >> > 'const char*' to 'const TCHAR*' in initialization > >> > mingw32-make[2]: *** > >> > [src/shared/CMakeFiles/clucene-shared.dir/CLucene/SharedHeader.obj] > >> > Error 1 > >> > mingw32-make[1]: *** [src/shared/CMakeFiles/clucene-shared.dir/all] > >> > Error 2 > >> > mingw32-make: *** [all] Error 2 > >> > > >> > what is the problem? > >> > > >> > Ahmed. > >> > > >> > Itamar Syn-Hershko <itamar@...> writes: > >> > > >> >> > >> >> It should compile with MingW. What compile errors do you get? > >> >> > >> >> Itamar. > >> >> > >> >> On 1/8/2010 10:17 PM, Ahmed wrote: > >> >> > hi, > >> >> > > >> >> > Can compile CLucene 2.3.2 under windows using MingW ? > >> >> > I tried that and i get a lot of errors. > >> >> > > >> >> > Ahmed > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > ------------------------------------------------------------------------------ > >> >> > The Palm PDK Hot Apps Program offers developers who use the > >> >> > Plug-In Development Kit to bring their C/C++ apps to Palm for a > share > >> >> > of $1 Million in cash or HP Products. Visit us here for more > details: > >> >> > http://p.sf.net/sfu/dev2dev-palm > >> >> > _______________________________________________ > >> >> > CLucene-developers mailing list > >> >> > CLucene-developers@... > >> >> > https://lists.sourceforge.net/lists/listinfo/clucene-developers > >> >> > > >> >> > > >> >> > > >> >> > >> >> > >> >> > >> >> > ------------------------------------------------------------------------------ > >> >> The Palm PDK Hot Apps Program offers developers who use the > >> >> Plug-In Development Kit to bring their C/C++ apps to Palm for a share > >> >> of $1 Million in cash or HP Products. Visit us here for more details: > >> >> http://p.sf.net/sfu/dev2dev-palm > >> >> > >> > > >> > > >> > > >> > > ------------------------------------------------------------------------------ > >> > Learn how Oracle Real Application Clusters (RAC) One Node allows > >> > customers > >> > to consolidate database storage, standardize their database > environment, > >> > and, > >> > should the need arise, upgrade to a full multi-node Oracle RAC > database > >> > without downtime or disruption > >> > http://p.sf.net/sfu/oracle-sfdevnl > >> > _______________________________________________ > >> > CLucene-developers mailing list > >> > CLu...@li... > >> > https://lists.sourceforge.net/lists/listinfo/clucene-developers > >> > > >> > > >> > >> > >> > ------------------------------------------------------------------------------ > >> Learn how Oracle Real Application Clusters (RAC) One Node allows > customers > >> to consolidate database storage, standardize their database environment, > >> and, > >> should the need arise, upgrade to a full multi-node Oracle RAC database > >> without downtime or disruption > >> http://p.sf.net/sfu/oracle-sfdevnl > >> _______________________________________________ > >> CLucene-developers mailing list > >> CLu...@li... > >> https://lists.sourceforge.net/lists/listinfo/clucene-developers > > > > > > > ------------------------------------------------------------------------------ > > Learn how Oracle Real Application Clusters (RAC) One Node allows > customers > > to consolidate database storage, standardize their database environment, > > and, > > should the need arise, upgrade to a full multi-node Oracle RAC database > > without downtime or disruption > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > CLucene-developers mailing list > > CLu...@li... > > https://lists.sourceforge.net/lists/listinfo/clucene-developers > > > > > > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any > company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > CLucene-developers mailing list > CLu...@li... > https://lists.sourceforge.net/lists/listinfo/clucene-developers > |
From: muhammad i. <m.i...@gm...> - 2011-01-10 15:21:12
|
Hello Jiri, I am sorry , it seems that i should read more in GIT. I got the SpanHighlightScorer but how can i use it to highlight terms without warring about the maxClauseCount ? thank you Mohammad Ismael |
From: muhammad i. <m.i...@gm...> - 2011-01-10 14:43:27
|
Hello Jiri, > for highlighting the important question is how big is ONE document and not > the size of the whole data. > > (At least I assume the 6GB is not the size of one document). > > the document size does not exceed 100000 character . > > > The class SpanHighlightScorer is in the contribs-lib package at the same > place as all other highlighter > > classes. But you cannot highlight a document based on a filter so to > highlight it you have to > > have the original WildcardQuery. This query would rewrite only against the > one document that is being > > highlighted and this probably will not generate so much clauses. > Excuse me , I can not find any file called SpanHighlightScorer in the highlighter branch or in the master branch. Mohammad Ismael |
From: Ben v. K. <bva...@gm...> - 2011-01-10 01:06:05
|
I don't have a windows machine to try this out, so i'm guessing a bit... i did get it working a while back... but you know how these things go looks like there's something wrong with the _T symbol... The line: const TCHAR* _LUCENE_BLANK_STRING=_T(""); _T("") should be returning actually L"". There are some things that those clucene-config.h file do if it think it needs to. I'm not sure if ming has tchar.h (which normally defines _T on windows)? can you give me your src/shared/CLucene/_clucene-config.h, clucene-config.h in your build directory. i'm looking for what it does with the _T symbol.. also let me know if there is a tchar.h in the mingw include path Cheers ben On Thu, Jan 6, 2011 at 8:37 PM, Ahmed Saidi <ci7...@gm...> wrote: > Here is what cmake print out: > http://pastebin.com/4KPZeFbB > mingw32-make: > http://pastebin.com/JFX5XzJX > > I am using the mingw version distributed along with qt 4.7 > > Ahmed > 2011/1/6 Ben van Klinken <bva...@gm...> >> >> did you configure using cmake? what did cmake print out? turn on >> verbose (run cmake using -DCMAKE_VERBOSE_MAKEFILE=ON), or use the >> cmake gui. so that we can see what parameters are being passed in. >> looks to me like ming is being compiled in ascii mode. >> >> ben >> >> On Tue, Jan 4, 2011 at 7:28 PM, Ahmed nusha <ci7...@gm...> wrote: >> > I'm trying to compile clucene under windows and i get the following >> > errors: >> > >> > C:\clucene_mingw-build>mingw32-make >> > [ 0%] Building CXX object >> > src/shared/CMakeFiles/clucene-shared.dir/CLucene/SharedHeader.obj >> > C:\clucene\src\shared\CLucene\SharedHeader.cpp:16: error: cannot convert >> > 'const char*' to 'const TCHAR*' in initialization >> > mingw32-make[2]: *** >> > [src/shared/CMakeFiles/clucene-shared.dir/CLucene/SharedHeader.obj] >> > Error 1 >> > mingw32-make[1]: *** [src/shared/CMakeFiles/clucene-shared.dir/all] >> > Error 2 >> > mingw32-make: *** [all] Error 2 >> > >> > what is the problem? >> > >> > Ahmed. >> > >> > Itamar Syn-Hershko <itamar@...> writes: >> > >> >> >> >> It should compile with MingW. What compile errors do you get? >> >> >> >> Itamar. >> >> >> >> On 1/8/2010 10:17 PM, Ahmed wrote: >> >> > hi, >> >> > >> >> > Can compile CLucene 2.3.2 under windows using MingW ? >> >> > I tried that and i get a lot of errors. >> >> > >> >> > Ahmed >> >> > >> >> > >> >> > >> >> > >> >> > ------------------------------------------------------------------------------ >> >> > The Palm PDK Hot Apps Program offers developers who use the >> >> > Plug-In Development Kit to bring their C/C++ apps to Palm for a share >> >> > of $1 Million in cash or HP Products. Visit us here for more details: >> >> > http://p.sf.net/sfu/dev2dev-palm >> >> > _______________________________________________ >> >> > CLucene-developers mailing list >> >> > CLucene-developers@... >> >> > https://lists.sourceforge.net/lists/listinfo/clucene-developers >> >> > >> >> > >> >> > >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> The Palm PDK Hot Apps Program offers developers who use the >> >> Plug-In Development Kit to bring their C/C++ apps to Palm for a share >> >> of $1 Million in cash or HP Products. Visit us here for more details: >> >> http://p.sf.net/sfu/dev2dev-palm >> >> >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > Learn how Oracle Real Application Clusters (RAC) One Node allows >> > customers >> > to consolidate database storage, standardize their database environment, >> > and, >> > should the need arise, upgrade to a full multi-node Oracle RAC database >> > without downtime or disruption >> > http://p.sf.net/sfu/oracle-sfdevnl >> > _______________________________________________ >> > CLucene-developers mailing list >> > CLu...@li... >> > https://lists.sourceforge.net/lists/listinfo/clucene-developers >> > >> > >> >> >> ------------------------------------------------------------------------------ >> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >> to consolidate database storage, standardize their database environment, >> and, >> should the need arise, upgrade to a full multi-node Oracle RAC database >> without downtime or disruption >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> CLucene-developers mailing list >> CLu...@li... >> https://lists.sourceforge.net/lists/listinfo/clucene-developers > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > CLucene-developers mailing list > CLu...@li... > https://lists.sourceforge.net/lists/listinfo/clucene-developers > > |
From: Ahmed S. <ci7...@gm...> - 2011-01-09 17:28:41
|
it's a macro: #define QSTRING_TO_TCHAR(s) (const wchar_t*) s.utf16() it's up to qt to make a clean up(maybe) 2011/1/9 Ben van Klinken <bva...@gm...> > oh it's a qt wrapper? i have no idea how that works, sorry. > > just an idea, but where do you clean up the result from QSTRING_TO_TCHAR? > > ben > > On Fri, Jan 7, 2011 at 5:57 PM, Ahmed Saidi <ci7...@gm...> wrote: > > Hello Muhammad, > > What analyzer are you using? > > It seem to me that your code is based on that application > > "clucene_qt", well i think that you are an old version of that > > application, it has several bugs concerning this problem, and the > > ArabicAnalyzer is not well implemented nor optimized, you should use > > the 0.6 or 0.8 version of this application. > > > > Ahmed > > > > 2011/1/6, muhammad ismael <m.i...@gm...>: > >> Hello ben, > >> the files are more than 6 GB. > >> I am sorry i was remember to add this function but i forgot and here it > is > >> > >> Document* IndexEngine::fileDocument(const QString &id, const QString > &bookid > >> , const QString &text) > >> > >> { > >> > >> // make a new, empty document > >> > >> Document* doc = _CLNEW Document(); > >> > >> ///page ID > >> > >> doc->add( *_CLNEW Field(_T("id"), QSTRING_TO_TCHAR(id) , > >> > >> Field::STORE_YES | Field::INDEX_UNTOKENIZED) > ); > >> > >> doc->add( *_CLNEW Field(_T("bookid"), QSTRING_TO_TCHAR(bookid) , > >> > >> Field::STORE_YES | Field::INDEX_UNTOKENIZED > ) ); > >> > >> doc->add( *_CLNEW Field(_T("text"), QSTRING_TO_TCHAR(text), > >> > >> Field::STORE_NO | Field::INDEX_TOKENIZED) ); > >> > >> return doc; > >> > >> } > >> > >> and also i tried to remove adding documents and the size did not > increased, > >> which means that leaks are in addDocument() I am trying to debug it but > i am > >> lost. > >> > >> sounds pretty high. how big are the files? could you be leaking memory > in > >>> the 'fileDocument' function? > >>> > >>> as a test, try not actually adding the document > >>> > >>> ben > >>> > >>> On Thu, Jan 6, 2011 at 7:43 AM, muhammad ismael <m.i...@gm... > >>> >wrote: > >>> > >>> > Hello, > >>> > I am trying to index large files as follows > >>> > > >>> > for(int j = 0; (j < pagesIds.count())&& !m_stop ; j++) > >>> > > >>> > { > >>> > > >>> > pagesText = > >>> m_DbManager->getBookPage(m_booksIds.at(i), pagesIds.at(j)).toUtf8(); > >>> > > >>> > if(!pagesText.isEmpty()) > >>> > > >>> > { > >>> > > >>> > Document* doc = > >>> fileDocument(QString::number(pagesIds.at(j)), > >>> QString::number(m_booksIds.at(i)), pagesText); > >>> > > >>> > writer->addDocument(doc); > >>> > > >>> > _CLDELETE(doc); > >>> > > >>> > } > >>> > > >>> > } > >>> > > >>> > > >>> > but when the number of files exceeds 5000 files the application usage > of > >>> my > >>> > computer ram is 2 GB > >>> > I tried to debug and i found that this happens in > >>> > > >>> > IndexWriter::addDocument(Document*) > >>> > > >>> > i tried to set > >>> > IndexWriter->setMergeFactor(5); > >>> > and also > >>> > IndexWriter->setRAMBufferSizeMB(10); > >>> > I know the default ram usage should be 16 MB but i just tried. > >>> > > >>> > I am working on master branch and i merged with it memory_leaks > branch. > >>> > is am i missing something? > >>> > >> > >> Mohammad Ismael > >> > > > > -- > > Envoyé avec mon mobile > > > > > ------------------------------------------------------------------------------ > > Gaining the trust of online customers is vital for the success of any > company > > that requires sensitive data to be transmitted over the Web. Learn how > to > > best implement a security strategy that keeps consumers' information > secure > > and instills the confidence they need to proceed with transactions. > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > CLucene-developers mailing list > > CLu...@li... > > https://lists.sourceforge.net/lists/listinfo/clucene-developers > > > > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any > company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > CLucene-developers mailing list > CLu...@li... > https://lists.sourceforge.net/lists/listinfo/clucene-developers > |
From: Freiholz M. <M.F...@ca...> - 2011-01-09 16:07:20
|
Hi Veit, here are my changes, due to the ANSI compiler errors. The code no longer uses std::wstring now. I attached you a .zip file which contains three different methods to apply the changes. - The files.. - A patch file - A commit file I'm still don't know why the suggestSimilar-function doesn't return the TCHAR** correct, when the IDE is not attached. But i'm looking forward to find the problem :) Greetings Manuel ________________________________________ From: Freiholz Manuel [M.F...@ca...] Sent: Friday, January 07, 2011 11:38 PM To: clu...@li... Subject: Re: [CLucene-dev] contrib: SpellChecker Hi Veit I removed the usage of wstring and wstreams. I also will have a look on suggestSimilar function. The error only occurs in release build for me. I will try to upload the patch tomorrow. Greetings Manuel Sent from Samsung Galaxy Android TabletVeit Jahns <nun...@go...> hat geschrieben: 2011/1/5 Freiholz Manuel <M.F...@ca...>: > Hi, > > ok i wil take a look at it. Thanks! I changed your files a little bit, so that it compiles on Ubuntu. But the test spellcheckersearch fails, because the the method suggestSimilar() returns no result (NULL pointer). Any idea? Veit ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ CLucene-developers mailing list CLu...@li... https://lists.sourceforge.net/lists/listinfo/clucene-developers ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ CLucene-developers mailing list CLu...@li... https://lists.sourceforge.net/lists/listinfo/clucene-developers |
From: Ben v. K. <bva...@gm...> - 2011-01-09 01:35:41
|
oh it's a qt wrapper? i have no idea how that works, sorry. just an idea, but where do you clean up the result from QSTRING_TO_TCHAR? ben On Fri, Jan 7, 2011 at 5:57 PM, Ahmed Saidi <ci7...@gm...> wrote: > Hello Muhammad, > What analyzer are you using? > It seem to me that your code is based on that application > "clucene_qt", well i think that you are an old version of that > application, it has several bugs concerning this problem, and the > ArabicAnalyzer is not well implemented nor optimized, you should use > the 0.6 or 0.8 version of this application. > > Ahmed > > 2011/1/6, muhammad ismael <m.i...@gm...>: >> Hello ben, >> the files are more than 6 GB. >> I am sorry i was remember to add this function but i forgot and here it is >> >> Document* IndexEngine::fileDocument(const QString &id, const QString &bookid >> , const QString &text) >> >> { >> >> // make a new, empty document >> >> Document* doc = _CLNEW Document(); >> >> ///page ID >> >> doc->add( *_CLNEW Field(_T("id"), QSTRING_TO_TCHAR(id) , >> >> Field::STORE_YES | Field::INDEX_UNTOKENIZED) ); >> >> doc->add( *_CLNEW Field(_T("bookid"), QSTRING_TO_TCHAR(bookid) , >> >> Field::STORE_YES | Field::INDEX_UNTOKENIZED ) ); >> >> doc->add( *_CLNEW Field(_T("text"), QSTRING_TO_TCHAR(text), >> >> Field::STORE_NO | Field::INDEX_TOKENIZED) ); >> >> return doc; >> >> } >> >> and also i tried to remove adding documents and the size did not increased, >> which means that leaks are in addDocument() I am trying to debug it but i am >> lost. >> >> sounds pretty high. how big are the files? could you be leaking memory in >>> the 'fileDocument' function? >>> >>> as a test, try not actually adding the document >>> >>> ben >>> >>> On Thu, Jan 6, 2011 at 7:43 AM, muhammad ismael <m.i...@gm... >>> >wrote: >>> >>> > Hello, >>> > I am trying to index large files as follows >>> > >>> > for(int j = 0; (j < pagesIds.count())&& !m_stop ; j++) >>> > >>> > { >>> > >>> > pagesText = >>> m_DbManager->getBookPage(m_booksIds.at(i), pagesIds.at(j)).toUtf8(); >>> > >>> > if(!pagesText.isEmpty()) >>> > >>> > { >>> > >>> > Document* doc = >>> fileDocument(QString::number(pagesIds.at(j)), >>> QString::number(m_booksIds.at(i)), pagesText); >>> > >>> > writer->addDocument(doc); >>> > >>> > _CLDELETE(doc); >>> > >>> > } >>> > >>> > } >>> > >>> > >>> > but when the number of files exceeds 5000 files the application usage of >>> my >>> > computer ram is 2 GB >>> > I tried to debug and i found that this happens in >>> > >>> > IndexWriter::addDocument(Document*) >>> > >>> > i tried to set >>> > IndexWriter->setMergeFactor(5); >>> > and also >>> > IndexWriter->setRAMBufferSizeMB(10); >>> > I know the default ram usage should be 16 MB but i just tried. >>> > >>> > I am working on master branch and i merged with it memory_leaks branch. >>> > is am i missing something? >>> >> >> Mohammad Ismael >> > > -- > Envoyé avec mon mobile > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > CLucene-developers mailing list > CLu...@li... > https://lists.sourceforge.net/lists/listinfo/clucene-developers > |
From: Šplíchal J. <spl...@to...> - 2011-01-08 15:52:24
|
Hello Mohammad, for highlighting the important question is how big is ONE document and not the size of the whole data. (At least I assume the 6GB is not the size of one document). The class SpanHighlightScorer is in the contribs-lib package at the same place as all other highlighter classes. But you cannot highlight a document based on a filter so to highlight it you have to have the original WildcardQuery. This query would rewrite only against the one document that is being highlighted and this probably will not generate so much clauses. Jiri From: muhammad ismael [mailto:m.i...@gm...] Sent: Saturday, January 08, 2011 4:31 PM To: clu...@li... Subject: Re: [CLucene-dev] CLucene-developers Digest, Vol 57, Issue 6 Hello Jiri I have documents more than 6 GB. I checked-out the highlighter branch and i compiled it. but where is the SpanHighlightScorer ? after sub-classing QueryParser and using wildcardFilter I can get results now but i can not highlight it. How can i highlight these results? Mohammad Ismael |
From: muhammad i. <m.i...@gm...> - 2011-01-08 15:30:46
|
Hello Jiri I have documents more than 6 GB. I checked-out the highlighter branch and i compiled it. but where is the SpanHighlightScorer ? after sub-classing QueryParser and using wildcardFilter I can get results now but i can not highlight it. How can i highlight these results? Mohammad Ismael |
From: Freiholz M. <M.F...@ca...> - 2011-01-07 22:38:47
|
Hi Veit I removed the usage of wstring and wstreams. I also will have a look on suggestSimilar function. The error only occurs in release build for me. I will try to upload the patch tomorrow. Greetings Manuel Sent from Samsung Galaxy Android TabletVeit Jahns <nun...@go...> hat geschrieben: 2011/1/5 Freiholz Manuel <M.F...@ca...>: > Hi, > > ok i wil take a look at it. Thanks! I changed your files a little bit, so that it compiles on Ubuntu. But the test spellcheckersearch fails, because the the method suggestSimilar() returns no result (NULL pointer). Any idea? Veit ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ CLucene-developers mailing list CLu...@li... https://lists.sourceforge.net/lists/listinfo/clucene-developers |
From: Veit J. <nun...@go...> - 2011-01-07 21:42:15
|
2011/1/5 Freiholz Manuel <M.F...@ca...>: > Hi, > > ok i wil take a look at it. Thanks! I changed your files a little bit, so that it compiles on Ubuntu. But the test spellcheckersearch fails, because the the method suggestSimilar() returns no result (NULL pointer). Any idea? Veit |
From: Ahmed S. <ci7...@gm...> - 2011-01-07 07:58:04
|
Hello Muhammad, What analyzer are you using? It seem to me that your code is based on that application "clucene_qt", well i think that you are an old version of that application, it has several bugs concerning this problem, and the ArabicAnalyzer is not well implemented nor optimized, you should use the 0.6 or 0.8 version of this application. Ahmed 2011/1/6, muhammad ismael <m.i...@gm...>: > Hello ben, > the files are more than 6 GB. > I am sorry i was remember to add this function but i forgot and here it is > > Document* IndexEngine::fileDocument(const QString &id, const QString &bookid > , const QString &text) > > { > > // make a new, empty document > > Document* doc = _CLNEW Document(); > > ///page ID > > doc->add( *_CLNEW Field(_T("id"), QSTRING_TO_TCHAR(id) , > > Field::STORE_YES | Field::INDEX_UNTOKENIZED) ); > > doc->add( *_CLNEW Field(_T("bookid"), QSTRING_TO_TCHAR(bookid) , > > Field::STORE_YES | Field::INDEX_UNTOKENIZED ) ); > > doc->add( *_CLNEW Field(_T("text"), QSTRING_TO_TCHAR(text), > > Field::STORE_NO | Field::INDEX_TOKENIZED) ); > > return doc; > > } > > and also i tried to remove adding documents and the size did not increased, > which means that leaks are in addDocument() I am trying to debug it but i am > lost. > > sounds pretty high. how big are the files? could you be leaking memory in >> the 'fileDocument' function? >> >> as a test, try not actually adding the document >> >> ben >> >> On Thu, Jan 6, 2011 at 7:43 AM, muhammad ismael <m.i...@gm... >> >wrote: >> >> > Hello, >> > I am trying to index large files as follows >> > >> > for(int j = 0; (j < pagesIds.count())&& !m_stop ; j++) >> > >> > { >> > >> > pagesText = >> m_DbManager->getBookPage(m_booksIds.at(i), pagesIds.at(j)).toUtf8(); >> > >> > if(!pagesText.isEmpty()) >> > >> > { >> > >> > Document* doc = >> fileDocument(QString::number(pagesIds.at(j)), >> QString::number(m_booksIds.at(i)), pagesText); >> > >> > writer->addDocument(doc); >> > >> > _CLDELETE(doc); >> > >> > } >> > >> > } >> > >> > >> > but when the number of files exceeds 5000 files the application usage of >> my >> > computer ram is 2 GB >> > I tried to debug and i found that this happens in >> > >> > IndexWriter::addDocument(Document*) >> > >> > i tried to set >> > IndexWriter->setMergeFactor(5); >> > and also >> > IndexWriter->setRAMBufferSizeMB(10); >> > I know the default ram usage should be 16 MB but i just tried. >> > >> > I am working on master branch and i merged with it memory_leaks branch. >> > is am i missing something? >> > > Mohammad Ismael > -- Envoyé avec mon mobile |
From: Veit J. <nun...@go...> - 2011-01-06 12:36:29
|
2011/1/5 Veit Jahns <nun...@go...>: > It work on Windows (I will check this also on other platforms too), > but I saw that you used wstring/wstringstream, e.g., in SpellCheckerC. > Thus, it works only, if the ASCII mode is not enabled. With ASCII mode > enabled it fails to compile. You have to use either tstring (then a > tstring replacement for Non-Windows plattform is needed) or directly > TCHAR. Maybe another option is to use the class CL_NS(util)::StringBuffer here. Veit |
From: muhammad i. <m.i...@gm...> - 2011-01-06 11:50:49
|
Hello ben, the files are more than 6 GB. I am sorry i was remember to add this function but i forgot and here it is Document* IndexEngine::fileDocument(const QString &id, const QString &bookid , const QString &text) { // make a new, empty document Document* doc = _CLNEW Document(); ///page ID doc->add( *_CLNEW Field(_T("id"), QSTRING_TO_TCHAR(id) , Field::STORE_YES | Field::INDEX_UNTOKENIZED) ); doc->add( *_CLNEW Field(_T("bookid"), QSTRING_TO_TCHAR(bookid) , Field::STORE_YES | Field::INDEX_UNTOKENIZED ) ); doc->add( *_CLNEW Field(_T("text"), QSTRING_TO_TCHAR(text), Field::STORE_NO | Field::INDEX_TOKENIZED) ); return doc; } and also i tried to remove adding documents and the size did not increased, which means that leaks are in addDocument() I am trying to debug it but i am lost. sounds pretty high. how big are the files? could you be leaking memory in > the 'fileDocument' function? > > as a test, try not actually adding the document > > ben > > On Thu, Jan 6, 2011 at 7:43 AM, muhammad ismael <m.i...@gm... > >wrote: > > > Hello, > > I am trying to index large files as follows > > > > for(int j = 0; (j < pagesIds.count())&& !m_stop ; j++) > > > > { > > > > pagesText = > m_DbManager->getBookPage(m_booksIds.at(i), pagesIds.at(j)).toUtf8(); > > > > if(!pagesText.isEmpty()) > > > > { > > > > Document* doc = > fileDocument(QString::number(pagesIds.at(j)), > QString::number(m_booksIds.at(i)), pagesText); > > > > writer->addDocument(doc); > > > > _CLDELETE(doc); > > > > } > > > > } > > > > > > but when the number of files exceeds 5000 files the application usage of > my > > computer ram is 2 GB > > I tried to debug and i found that this happens in > > > > IndexWriter::addDocument(Document*) > > > > i tried to set > > IndexWriter->setMergeFactor(5); > > and also > > IndexWriter->setRAMBufferSizeMB(10); > > I know the default ram usage should be 16 MB but i just tried. > > > > I am working on master branch and i merged with it memory_leaks branch. > > is am i missing something? > Mohammad Ismael |
From: Ahmed S. <ci7...@gm...> - 2011-01-06 10:37:40
|
Here is what cmake print out: http://pastebin.com/4KPZeFbB mingw32-make: http://pastebin.com/JFX5XzJX I am using the mingw version distributed along with qt 4.7 Ahmed 2011/1/6 Ben van Klinken <bva...@gm...> > did you configure using cmake? what did cmake print out? turn on > verbose (run cmake using -DCMAKE_VERBOSE_MAKEFILE=ON), or use the > cmake gui. so that we can see what parameters are being passed in. > looks to me like ming is being compiled in ascii mode. > > ben > > On Tue, Jan 4, 2011 at 7:28 PM, Ahmed nusha <ci7...@gm...> wrote: > > I'm trying to compile clucene under windows and i get the following > errors: > > > > C:\clucene_mingw-build>mingw32-make > > [ 0%] Building CXX object > > src/shared/CMakeFiles/clucene-shared.dir/CLucene/SharedHeader.obj > > C:\clucene\src\shared\CLucene\SharedHeader.cpp:16: error: cannot convert > > 'const char*' to 'const TCHAR*' in initialization > > mingw32-make[2]: *** > > [src/shared/CMakeFiles/clucene-shared.dir/CLucene/SharedHeader.obj] Error > 1 > > mingw32-make[1]: *** [src/shared/CMakeFiles/clucene-shared.dir/all] Error > 2 > > mingw32-make: *** [all] Error 2 > > > > what is the problem? > > > > Ahmed. > > > > Itamar Syn-Hershko <itamar@...> writes: > > > >> > >> It should compile with MingW. What compile errors do you get? > >> > >> Itamar. > >> > >> On 1/8/2010 10:17 PM, Ahmed wrote: > >> > hi, > >> > > >> > Can compile CLucene 2.3.2 under windows using MingW ? > >> > I tried that and i get a lot of errors. > >> > > >> > Ahmed > >> > > >> > > >> > > >> > > ------------------------------------------------------------------------------ > >> > The Palm PDK Hot Apps Program offers developers who use the > >> > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > >> > of $1 Million in cash or HP Products. Visit us here for more details: > >> > http://p.sf.net/sfu/dev2dev-palm > >> > _______________________________________________ > >> > CLucene-developers mailing list > >> > CLucene-developers@... > >> > https://lists.sourceforge.net/lists/listinfo/clucene-developers > >> > > >> > > >> > > >> > >> > >> > ------------------------------------------------------------------------------ > >> The Palm PDK Hot Apps Program offers developers who use the > >> Plug-In Development Kit to bring their C/C++ apps to Palm for a share > >> of $1 Million in cash or HP Products. Visit us here for more details: > >> http://p.sf.net/sfu/dev2dev-palm > >> > > > > > > > ------------------------------------------------------------------------------ > > Learn how Oracle Real Application Clusters (RAC) One Node allows > customers > > to consolidate database storage, standardize their database environment, > > and, > > should the need arise, upgrade to a full multi-node Oracle RAC database > > without downtime or disruption > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > CLucene-developers mailing list > > CLu...@li... > > https://lists.sourceforge.net/lists/listinfo/clucene-developers > > > > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > CLucene-developers mailing list > CLu...@li... > https://lists.sourceforge.net/lists/listinfo/clucene-developers > |
From: Šplíchal J. <spl...@to...> - 2011-01-06 09:54:21
|
Hi, ad 1) the highlighter branch is there, did you pull the newest version? ad 2) the basic QueryScorer calls extractTerms() method on the supplied query, so you can use it only with queries that implement this method. All primitive queries do implement it, Wildcard query is not a primitive query and so you have to call its rewrite method and use the rewritten query. ad 3) the new implementation – SpanHighlightScorer – is able to rewrite the queries itself because it makes (if necessary) its own memoryindex containing just the highlighted document. The queries are rewritten using this small index. For a wildcard query this normally leads to a much smaller number of matching terms and so you avoid the max clause problem. (But of course, if your Wildcard query matches more than maxTerms different terms in the highlighted text, than you have to increase this number) – How big are your documents? Jiri From: muhammad ismael [mailto:m.i...@gm...] Sent: Wednesday, January 05, 2011 7:00 PM To: clu...@li... Subject: Re: [CLucene-dev] CLucene-developers Digest, Vol 57, Issue 4 please could you write how you instantiate the highlighter? Which scorer do you use? m_highlightQuery = m_pMainQuery->clone(); Query * q = m_highlightQuery->rewrite(m_pReader); m_queryScorer = new QueryScorer(q); m_highlighter = new Highlighter(m_queryScorer); Are you using the highlighter version from the highlighter branch? No i am on master branch and i can not find highlighter branch , i merged the wildcardQuery_fix and memory_leaks branches to master. I would try to find the place, where the exception is thrown. But still, there is a problem along with the ConstantScoreQuery. Both ways to highlight a document that are available now will not work because: 1) If you use the "basic" highlighting - means you use the CL_NS2(search,highlight)::QueryScorer - than this scorer calls the extractTerms() method which is not implemented in ConstantScoreQuery as this query uses filters to match documents. 2 the "exact" highlighting - means you use the CL_NS2(search,highlight)::SpanHighlightScorer - also does not highlight ConstantScoreQueries for the same reason. is this means that i can not use WildcardQuery with highlighter without setting the maximum clauses? But, you could use this scorer with the original WildcardQuery and allow rewriting queries in place. Then if your documents are not too long and the single documents does not contain more the the max clause limit different matching terms, then this would work. If you want to use the new highlighter scorer then I could send you piece of code, how to call it. Note :- I can not use setMaxClauses because my documents are too long and if i use setMaxClauses i always get too many clauses exception Mohammad Ismael |
From: Ben v. K. <bva...@gm...> - 2011-01-06 08:20:19
|
did you configure using cmake? what did cmake print out? turn on verbose (run cmake using -DCMAKE_VERBOSE_MAKEFILE=ON), or use the cmake gui. so that we can see what parameters are being passed in. looks to me like ming is being compiled in ascii mode. ben On Tue, Jan 4, 2011 at 7:28 PM, Ahmed nusha <ci7...@gm...> wrote: > I'm trying to compile clucene under windows and i get the following errors: > > C:\clucene_mingw-build>mingw32-make > [ 0%] Building CXX object > src/shared/CMakeFiles/clucene-shared.dir/CLucene/SharedHeader.obj > C:\clucene\src\shared\CLucene\SharedHeader.cpp:16: error: cannot convert > 'const char*' to 'const TCHAR*' in initialization > mingw32-make[2]: *** > [src/shared/CMakeFiles/clucene-shared.dir/CLucene/SharedHeader.obj] Error 1 > mingw32-make[1]: *** [src/shared/CMakeFiles/clucene-shared.dir/all] Error 2 > mingw32-make: *** [all] Error 2 > > what is the problem? > > Ahmed. > > Itamar Syn-Hershko <itamar@...> writes: > >> >> It should compile with MingW. What compile errors do you get? >> >> Itamar. >> >> On 1/8/2010 10:17 PM, Ahmed wrote: >> > hi, >> > >> > Can compile CLucene 2.3.2 under windows using MingW ? >> > I tried that and i get a lot of errors. >> > >> > Ahmed >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > The Palm PDK Hot Apps Program offers developers who use the >> > Plug-In Development Kit to bring their C/C++ apps to Palm for a share >> > of $1 Million in cash or HP Products. Visit us here for more details: >> > http://p.sf.net/sfu/dev2dev-palm >> > _______________________________________________ >> > CLucene-developers mailing list >> > CLucene-developers@... >> > https://lists.sourceforge.net/lists/listinfo/clucene-developers >> > >> > >> > >> >> >> ------------------------------------------------------------------------------ >> The Palm PDK Hot Apps Program offers developers who use the >> Plug-In Development Kit to bring their C/C++ apps to Palm for a share >> of $1 Million in cash or HP Products. Visit us here for more details: >> http://p.sf.net/sfu/dev2dev-palm >> > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > CLucene-developers mailing list > CLu...@li... > https://lists.sourceforge.net/lists/listinfo/clucene-developers > > |