Welcome to the new Box Support website. Check out all the details here on what’s changed.

Get files contents from search

Answered
New post

Comments

1 comment

  • Jason

    Hi , 

     

    There's not an exact way to have relevant matched content returned by the /search API. The closest behavior you could get would be to return the extracted text representation of any search results:

    https://developer.box.com/en/guides/representations/text/

     

    And then deciding how you'd want to display surrounding text, e.g. X letters before and after or using more advanced relevance logic. 

     

    Always feel free to add suggestions to https://pulse.box.com/! It'll help us the most if you can provide context around your use case so we can understand how new features would impact customers.

     

    Thanks,

    Jason

    0
    Comment actions Permalink

Please sign in to leave a comment.