Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Danny 46 posts 81 karma points
    Nov 04, 2010 @ 01:13
    Danny
    0

    Possible to get matched word or field in Examine search?

    I am implementing auto suggest for a project I'm working on.

    The search is going against multiple fields in a document type (5 or so fields).

    I have the auto complete working, but in order to find the actual word that was matched to suggest, I basically have to loop through all the fields in each SearchResult, then see if the string in that field contains a word that could have been matched to display that word. Performance wise, this doesn't seem optimal. 

    I don't want to display everything that was in the field either since I just want to suggest the particular word the user was typing, so optimally if I could get the word that was matched for each SearchResult that would be best. 

    Is what I'm trying to do possible?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies