I've tried to use biblio_db_search() with OR as operator but biblio module still acts like I set the operator as AND.
The function call I've tried is like biblio_db_serach("inline","keyword","drupal","or","keyword,"qazBOB"). Thus instead serching for biblios witch keyword is drupal or qazBOB, it search for biblios who have both of this keywords.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | biblio.module_3.patch | 7.78 KB | qazBOB |
Comments
Comment #1
rjerome commentedAs it is now that "or" would be ignored. Although this seems straight forward, it is actually a bit tricky, but I have been looking at ways to achieve this and will implement this capability sometime soon.
Ron.
Comment #2
qazBOB commentedHi, I've solved. I have modified the biblio_db_search(), now it's possible to combine the use of ANDs and ORs also in the same query.
In attachment the biblio_db_search() that I've modified.
Roberto
Comment #3
qazBOB commentedComment #4
qazBOB commentedDid anyone found this patch useful?
Comment #5
rjerome commentedI'll revisit this since I'm looking at db_search function right now in 6.x
Comment #6
savitha commentedHi,
does this patch is really working?, because I tried and it didn't work for me.
Comment #7
ar-jan commentedI'm assuming this is fixed in 6.x and 7.x branches, and 5.x is no longer supported.Edit: I see it's still an issue in D6: #1273484: OR_clause in the biblio_db search function of the biblio module, but leaving status as won't fix for 5.x.