We have a bunch of queries that contain proximity operators (e.g., w/4) and we would like to make a simple modification to our code so that the number is doubled. That is, if the query is "+reqterm* @0 nearterm* w/3" we'd like to send "+reqterm* @0 nearterm* w/6" to SQL.
My idea was (conceptually) to use sandr to search the query phrases for "w\/\digit" and replace it with something like "w\{3} * 2". That is, to do the math right inside the replacement portion of sandr. Is this do-able? If so, I can't figure out how. Is there an obviously easier way that I'm not seeing?
Thanks in advance
My idea was (conceptually) to use sandr to search the query phrases for "w\/\digit" and replace it with something like "w\{3} * 2". That is, to do the math right inside the replacement portion of sandr. Is this do-able? If so, I can't figure out how. Is there an obviously easier way that I'm not seeing?
Thanks in advance