[tracker] libtracker-fts: Helper log better after NEAR-related fixes
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-fts: Helper log better after NEAR-related fixes
- Date: Wed, 14 Jul 2010 13:46:23 +0000 (UTC)
commit 49f3b661a7560be903eb3b52ac16b238312b853e
Author: Aleksander Morgado <aleksander lanedo com>
Date: Wed Jul 14 15:46:01 2010 +0200
libtracker-fts: Helper log better after NEAR-related fixes
src/libtracker-fts/tracker-fts.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/libtracker-fts/tracker-fts.c b/src/libtracker-fts/tracker-fts.c
index 4948ba7..eb34a7b 100644
--- a/src/libtracker-fts/tracker-fts.c
+++ b/src/libtracker-fts/tracker-fts.c
@@ -4585,8 +4585,14 @@ static int parseQuery(
*/
aTerm = pQuery->pTerms;
for(ii=0; ii<pQuery->nTerms; ii++){
+ if( aTerm[ii].nNear || aTerm[ii].nPhrase ){
+ while (aTerm[ii+aTerm[ii].nPhrase].nNear) {
+ aTerm[ii].nPhrase += (1 + aTerm[ii+aTerm[ii].nPhrase+1].nPhrase);
+ }
+ }
#if PRINT_PARSED_QUERY
- g_debug (" [Term %d] '%s' (%d)\n"
+ g_debug ("\n"
+ "[Term %d] '%s' (%d)\n"
" nPhrase: %d\n"
" iPhrase: %d\n"
" iColumn: %d\n"
@@ -4603,12 +4609,6 @@ static int parseQuery(
aTerm[ii].isNot ? "yes" : "no",
aTerm[ii].isPrefix ? "yes" : "no");
#endif /* PRINT_PARSED_QUERY */
-
- if( aTerm[ii].nNear || aTerm[ii].nPhrase ){
- while (aTerm[ii+aTerm[ii].nPhrase].nNear) {
- aTerm[ii].nPhrase += (1 + aTerm[ii+aTerm[ii].nPhrase+1].nPhrase);
- }
- }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]