Skip to main content

Search API

Comments

4 comments

  • Graham Sprague

    I submitted a Ticket so this is going to be a dupe. Feel free to ignore it.

    0
  • Eric Pasos

    Hi Graham,

    Just to share the information as provided on the internal ticket, for reference:

    1. When doing context:Elmer Fud* - it is equivalent to doing context:Elmer OR Fud* where context:Elmer checks the key and Fud* gets tokenized and checked across keys and values
    2. The context:Elmer Fu* will not work because it is translated into context:Elmer OR Fu* where Fu is the prefix, but not a tokenized word
    3. context:SPA* only checks the key

    It is recommended to do context.key:value.

    Thanks.

    0
  • Graham Sprague

    Ok, that makes sense to me. I looked up the "luncene-like" expression rules and applied them. I assume I should be quoting these to keep them as a single string value with spaces. It seems to work for whole values but when I use a partial; I get inconsistent results. For example; If I search for the following...

    context.project:"Gift Pack" OR tags:"Gift Pack" - Results

    context.project:"Gift Pac*" OR tags:"Gift Pac*" - Same set of results

    context.project:"Gift Pa*" OR tags:"Gift Pa*" - Lesser set of results

    Can you explain why I am seeing less results here? I would expect to get the same number of items as the previous 2 searches.

    0
  • Neta Agmon

    Hi Graham, 

    When using partial prefix values (like "Gift P*") it is recommended to use the '=' exact search operator rather than ':'. For example: 

    context.project="Gift Pa*" OR tags="Gift Pa*"

    This should return consistent results. Nevertheless, thank you for reporting this. We will look into the inconsistencies you mentioned above. 

    0

Post is closed for comments.