aboutsummaryrefslogtreecommitdiff
path: root/api_readme.md
diff options
context:
space:
mode:
authorzsloan2022-02-28 21:16:20 +0000
committerzsloan2022-02-28 15:21:50 -0600
commitc71218d9221789f850f5d93329f2d466527d3c52 (patch)
tree5cfd434a2eb54066f2df1632386492413b02067a /api_readme.md
parentf61bf4beb6622c1553ea441cd63192d4ec778670 (diff)
downloadgenenetwork2-c71218d9221789f850f5d93329f2d466527d3c52.tar.gz
Fix fulltext search for certain searches
Hyphens in fulltext searches were causing problems, but a recent commit I made to fix the issue apparently had some side effects for other types of searches, in addition to make such searches someewhat slower Apparently the issue wasn't just the hyphens, but also the text to either side of the hyphen being lower than the minimum word length (which is either 2 or 3 for us, can't remember). To try and address this, I did a regular expression check for a pattern with text of <3 legnth to either side of a hyphen, and when that's the case I add quotes from the search term plus an asterisk, which seeems to be necessary to get it to not treat the hyphen as a delimiter and to correctly detect the search term
Diffstat (limited to 'api_readme.md')
0 files changed, 0 insertions, 0 deletions