Re: [translate-pootle] search by phrase in Pootle
Thanks Julen and Lars for your reply. As Julen guessed, I've installed Xapian on my server. On 2008? 11? 27? ?? 09:49, Lars Kruse wrote: > Hi, > > >> I've made some tests and noticed that this only happens when using an >> indexing engine. But looking at the code all seems fine. >> >> indexer.make_query is called with the second argument (require_all) as >> True, which is the default, and according to the common indexer >> specification: >> @param require_all: boolean operator >> (True -> AND (default) / False -> OR) >> > > there are three code lines calling "make_query" in the function "indexsearch". > As far as I understand, the first one (line 1019) evaluates the search text. > It > uses "OR". > Later the search text query is ANDed with the filename query. > > I guess, the behaviour would change, if the "make_query" call in line 1019 > would pass "True" instead of "False" as the second parameter. > Could your (Aijin) try this, please? > I installed Pootle 1.2 and the code line seems different. (the first make_query is located on the line 914) I changed the parameter of first make_query in indexsearch to "True". However it didn't work well. The result is neither OR nor AND. After changing, I only got strings which contains 'pootle'. > Would AND be the desired behaviour for the text search field? > I think so, if you input 'pootle server' in search window, you should only get the result containing 'pootle server'. AND was default behavior in previous versions of Pootle. Thanks, Aijin > regards, > Lars > > - > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > Translate-pootle mailing list > Translate-pootle@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/translate-pootle > - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
Re: [translate-pootle] search by phrase in Pootle
Hi, > I've made some tests and noticed that this only happens when using an > indexing engine. But looking at the code all seems fine. > > indexer.make_query is called with the second argument (require_all) as > True, which is the default, and according to the common indexer > specification: > @param require_all: boolean operator > (True -> AND (default) / False -> OR) there are three code lines calling "make_query" in the function "indexsearch". As far as I understand, the first one (line 1019) evaluates the search text. It uses "OR". Later the search text query is ANDed with the filename query. I guess, the behaviour would change, if the "make_query" call in line 1019 would pass "True" instead of "False" as the second parameter. Could your (Aijin) try this, please? Would AND be the desired behaviour for the text search field? regards, Lars - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
Re: [translate-pootle] Pootle version control problems with distributed version control systems
On Mon, Nov 24, 2008 at 10:26:54PM -0600, David Fraser <[EMAIL PROTECTED]> wrote: > Surely the merge has to be done anyway, whether it's done by Pootle or the > DVCS? > Anyway just thinking aloud... See my other mail in this thread, it was a long one where I described what functionality would I need to write a merge driver for po files. I'm sure Pootle supports merging of po files at some level (ie. the functionality is there, but I have no idea how to use it from commadline). pgpRFp0EkDwmm.pgp Description: PGP signature - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
Re: [translate-pootle] search by phrase in Pootle
On Wed, Nov 26, 2008 at 1:13 PM, Aijin Kim <[EMAIL PROTECTED]> wrote: > Hi, > > It seems that search by phrase doesn't work in Pootle 1.2. > For example, if I execute search with 'pootle server', the result lists all > strings which contains 'pootle' or 'server'. > > How can I get strings only contains 'pootle server'? > > Thanks, > Aijin Hi Aijin, I guess your server is using Xapian or Lucene, right? I've made some tests and noticed that this only happens when using an indexing engine. But looking at the code all seems fine. indexer.make_query is called with the second argument (require_all) as True, which is the default, and according to the common indexer specification: @param require_all: boolean operator (True -> AND (default) / False -> OR) So it should perform AND queries but it doesn't. Lars, is there something tied to the implementation of the indexers that could cause this behaviour? Julen. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
[translate-pootle] search by phrase in Pootle
Hi, It seems that search by phrase doesn't work in Pootle 1.2. For example, if I execute search with 'pootle server', the result lists all strings which contains 'pootle' or 'server'. How can I get strings only contains 'pootle server'? Thanks, Aijin - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle