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 > [email protected] > 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 [email protected] https://lists.sourceforge.net/lists/listinfo/translate-pootle
