Last modified: 2007-02-22 17:38:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10958, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8958 - wrong query parser for tsearch2 (pgsql)
wrong query parser for tsearch2 (pgsql)
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: postgres
  Show dependency treegraph
 
Reported: 2007-02-12 14:41 UTC by Cédric
Modified: 2007-02-22 17:38 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
rewrite using tsearch2 valid operators (1.82 KB, patch)
2007-02-12 14:43 UTC, Cédric
Details

Description Cédric 2007-02-12 14:41:38 UTC
it seems taht the query parser do the job for mysql not for pgsql :
operators in tsearch query are : () ! | & but + and - are used

I have patch include/SearchPostgres.php to rewrite using the above operators (I have made some tests, 
but not all ....).

Know issue : if you search only by the absence of a word there is strange behaviour (I think this is 
more mediawiki code than specific postgresql code)
Comment 1 Cédric 2007-02-12 14:43:18 UTC
Created attachment 3211 [details]
rewrite using tsearch2 valid operators

make more test than I did ....
Comment 2 Greg Sabino Mullane 2007-02-22 17:36:49 UTC
Thanks for the patch - applied in r20040
Added notes about the <. >, and ~ operators - don't know if there 
is an easy way for tsearch2 to implement them.


Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links