TextIQ Feature Request - Multiple matches for near operator | XM Community
Skip to main content

TextIQ Feature Request - Multiple matches for near operator

  • January 17, 2023
  • 1 reply
  • 19 views

Forum|alt.badge.img+4

  • Current Problem: Would like to be able to tag multiple words with a near operator. For example,
    (doctor | physician) & (nice | rude) 
    would errantly tag the comment "The nurses were nice at my most recent visit to see my doctor."

  • Current Solution (if applicable): The only workaround currently is to write a near operation for every possible combination of words on either side of the "&". In this case, it'd be:
    (doctor nice)~3 | (doctor rude)~3 | (physician nice)~3 | (physician rude)~3
    . This is manageable for this small example, but there can be a lot of combinations (e.g., doctor/dr/physician/resident/oncologist/gynecologist... would all need their own set of near operators for each word).

  • Possible Solution: Ideally, I'd like to be able to write something once, possibly in a format like this:
    ((doctor | physician) (nice | rude))~3
    to catch all the "near" combinations between the words.

  • Purpose / Use Case: This would be useful to any client that wants to be able to refine TextIQ queries without repeating themselves.


1 reply

Forum|alt.badge.img+4
  • Author
  • Level 1 ●
  • January 17, 2023