GetDocuments partial match

Posted by Community Admin on 04-Aug-2018 16:47

GetDocuments partial match

All Replies

Posted by Community Admin on 06-Feb-2015 00:00

First off, nice documentation on the api. But, I'm looking to go one step further in the GetDocuments method. Currently when I want to find a document(s), I can search by title. This has to be an exact match using the examples but no information on partial matching. I'd like to supply a criteria using a wild card(s). Ie, 'search item*', '%item' or '%ear%' to find me a file(s). This is my exact match using title method. 

            var document = libManager.GetDocuments().Where(d => d.Title == title).FirstOrDefault();

Posted by Community Admin on 06-Feb-2015 00:00

d.Title.Contains("searchterm") or maybe d.Title.ToString().Contains("searchterm")?

Posted by Community Admin on 06-Feb-2015 00:00

(thumbs up)

This thread is closed