We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
qazimuneeb1
5 years agoExplorer | Level 3
Search text in Text File
I have an android app and I am having mp3 files in my dropbox and i am using search bar to type their name and get them using:
sresult = client.files().searchBuilder(path2, query2).withMode(mod...
qazimuneeb1
5 years agoExplorer | Level 3
I tried using this code:
SearchV2Builder searchBuilder = client.files().searchV2Builder(query);
List<String> fileExtensions = Arrays.asList(extensions);
SearchOptions searchOptions = SearchOptions.newBuilder().withFileExtensions(fileExtensions).build();
SearchV2Result searchResult = searchBuilder.withOptions(searchOptions).start();
List<SearchMatchV2> searchMatches = searchResult.getMatches();
but it only searches for text file name and not for the content placed inside it. Suppose i have a word "hello" placed inside my text file named "documents" so if i starts typing "he" then the word "hello" should appear in searches from "documents" file. Is the possible as i am having different text files and that should search in all of the text files before giving me the result
Greg-DB
Dropbox Community Moderator
5 years agoIt sounds like you're looking for the feature called "full-text search". That's only available to accounts with certain Dropbox plans. Please refer to the help center article for more information.
About Discuss Dropbox Developer & API
Make connections with other developers
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!