<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Search text in Text File in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Search-text-in-Text-File/m-p/548908#M2170</link>
    <description>&lt;P&gt;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:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;sresult = &lt;SPAN&gt;client&lt;/SPAN&gt;.files().searchBuilder(&lt;SPAN&gt;path2&lt;/SPAN&gt;, &lt;SPAN&gt;query2&lt;/SPAN&gt;).withMode(&lt;SPAN&gt;mode&lt;/SPAN&gt;).withMaxResults(&lt;SPAN&gt;max&lt;/SPAN&gt;).withStart(&lt;SPAN&gt;stat&lt;/SPAN&gt;).start();&lt;/PRE&gt;
&lt;P&gt;Above feature is fulfilled but now i am having .txt files and i want to get text from those text files as i type a keyword in search bar. I used the above code for this feature but it gives me the exception:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;class com.dropbox.core.v2.files.searcherrorexception exception in 2/files/search: {".tag":"path","path":"not_found"}&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to do this in my app?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Oct 2021 12:11:24 GMT</pubDate>
    <dc:creator>qazimuneeb1</dc:creator>
    <dc:date>2021-10-05T12:11:24Z</dc:date>
    <item>
      <title>Search text in Text File</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Search-text-in-Text-File/m-p/548908#M2170</link>
      <description>&lt;P&gt;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:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;sresult = &lt;SPAN&gt;client&lt;/SPAN&gt;.files().searchBuilder(&lt;SPAN&gt;path2&lt;/SPAN&gt;, &lt;SPAN&gt;query2&lt;/SPAN&gt;).withMode(&lt;SPAN&gt;mode&lt;/SPAN&gt;).withMaxResults(&lt;SPAN&gt;max&lt;/SPAN&gt;).withStart(&lt;SPAN&gt;stat&lt;/SPAN&gt;).start();&lt;/PRE&gt;
&lt;P&gt;Above feature is fulfilled but now i am having .txt files and i want to get text from those text files as i type a keyword in search bar. I used the above code for this feature but it gives me the exception:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;class com.dropbox.core.v2.files.searcherrorexception exception in 2/files/search: {".tag":"path","path":"not_found"}&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to do this in my app?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 12:11:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Search-text-in-Text-File/m-p/548908#M2170</guid>
      <dc:creator>qazimuneeb1</dc:creator>
      <dc:date>2021-10-05T12:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Search text in Text File</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Search-text-in-Text-File/m-p/548936#M2171</link>
      <description>&lt;P&gt;Yes, the Dropbox API does offer the ability to search for a particular query in a particular file type under a particular path. I see you're using searchBuilder though, which is deprecated, so you should update to &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v4.0.1/com/dropbox/core/v2/files/DbxUserFilesRequests.html#searchV2Builder-java.lang.String-" target="_self"&gt;searchV2Builder&lt;/A&gt; instead. &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v4.0.1/com/dropbox/core/v2/files/SearchV2Builder.html" target="_self"&gt;The SearchV2Builder documentation&lt;/A&gt; shows what methods/parameters you can use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A 'not_found' error like you're getting indicates that there's nothing at the specified path, so make sure you're supplying a correct path value, in your code 'path2', for the connected account. I recommend reading &lt;A href="https://developers.dropbox.com/dbx-file-access-guide" target="_self"&gt;the File Access Guide&lt;/A&gt; for information on interacting with the Dropbox filesystem via the API.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 14:30:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Search-text-in-Text-File/m-p/548936#M2171</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-10-05T14:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Search text in Text File</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Search-text-in-Text-File/m-p/549068#M2176</link>
      <description>&lt;P&gt;I tried using this code:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;SearchV2Builder searchBuilder &lt;/SPAN&gt;= &lt;SPAN&gt;client&lt;/SPAN&gt;.files().searchV2Builder(&lt;SPAN&gt;query&lt;/SPAN&gt;);&lt;BR /&gt;&lt;SPAN&gt;List&lt;/SPAN&gt;&amp;lt;&lt;SPAN&gt;String&lt;/SPAN&gt;&amp;gt; &lt;SPAN&gt;fileExtensions &lt;/SPAN&gt;= &lt;SPAN&gt;Arrays&lt;/SPAN&gt;.&lt;SPAN&gt;asList&lt;/SPAN&gt;(&lt;SPAN&gt;extensions&lt;/SPAN&gt;);&lt;BR /&gt;&lt;SPAN&gt;SearchOptions searchOptions &lt;/SPAN&gt;= &lt;SPAN&gt;SearchOptions&lt;/SPAN&gt;.&lt;SPAN&gt;newBuilder&lt;/SPAN&gt;().withFileExtensions(&lt;SPAN&gt;fileExtensions&lt;/SPAN&gt;).build();&lt;BR /&gt;&lt;SPAN&gt;SearchV2Result searchResult &lt;/SPAN&gt;= &lt;SPAN&gt;searchBuilder&lt;/SPAN&gt;.withOptions(&lt;SPAN&gt;searchOptions&lt;/SPAN&gt;).start();&lt;BR /&gt;&lt;SPAN&gt;List&lt;/SPAN&gt;&amp;lt;&lt;SPAN&gt;SearchMatchV2&lt;/SPAN&gt;&amp;gt; &lt;SPAN&gt;searchMatches &lt;/SPAN&gt;= &lt;SPAN&gt;searchResult&lt;/SPAN&gt;.getMatches();&lt;/PRE&gt;&lt;P&gt;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&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 06:04:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Search-text-in-Text-File/m-p/549068#M2176</guid>
      <dc:creator>qazimuneeb1</dc:creator>
      <dc:date>2021-10-06T06:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Search text in Text File</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Search-text-in-Text-File/m-p/549128#M2177</link>
      <description>&lt;P data-unlink="true"&gt;It 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 &lt;A href="https://help.dropbox.com/files-folders/sort-preview/search-content" target="_self"&gt;the help center article for more information&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 14:17:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Search-text-in-Text-File/m-p/549128#M2177</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-10-06T14:17:24Z</dc:date>
    </item>
  </channel>
</rss>

