<?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 Totally lost at free text search with REST in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/totally-lost-at-free-text-search-with-rest/m-p/143627#M38158</link>
    <description>&lt;P&gt;I have tried to understand the following documentations:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/content-services/6.2/develop/rest-api-guide/searching/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/content-services/6.2/develop/rest-api-guide/searching/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/search-services/1.3/using/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/search-services/1.3/using/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I try to search for a compound expression: the document (or it's title, name, ...) contains 444840 OR 00444840 AND the exact term "Maklri Istvn Tams"&lt;/P&gt;&lt;P&gt;I try to use the POST API with a query:&lt;/P&gt;&lt;PRE&gt;curl --insecure -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' --header 'Authorization: Basic ***********' --data-binary '@query.json' https://devtest.****:8443
/alfresco/api/-default-/public/search/versions/1/search&lt;/PRE&gt;&lt;P&gt;and the query.json file is&lt;/P&gt;&lt;PRE&gt;{
    "query": {
       "query":"(\"444840\" OR \"00444840\") AND =\"Maklri Istvn Tams\""
    },
    "fields":["id","parentId"],
    "paging": { "maxItems": "100", "skipCount": "0" }
}&lt;/PRE&gt;&lt;P&gt;but with or without \" and = I can not get an useful result set. It breaks up "Maklri Istvn Tams" and finds the three tags, if I search for 1760000 it founds 1760020, etc.&lt;/P&gt;&lt;P&gt;Alfresco's faceted search shows promises:&lt;/P&gt;&lt;PRE&gt;8443/share/page/dp/ws/faceted-search#searchTerm=(444840 OR 00444840) AND "Maklri Istvn Tams"&amp;amp;scope=repo&amp;amp;sortField=null&lt;/PRE&gt;&lt;P&gt;gives only one result, which looks correct.&lt;/P&gt;&lt;P&gt;Is it possible to use the POST query to get the right results?&lt;/P&gt;&lt;PRE&gt;Alfresco Share v6.2.0
(r7791ffba8f0b22f1ef9fa25ba17400c4657068e3-b9, Aikau 1.0.101.19, Spring Surf 6.2.0, Spring WebScripts 7.10, Freemarker 2.3.28, Rhino 1.7.11, Yui 2.9.0-alfresco-20141223)
Alfresco Community v6.2.0
(r05dbaf43-b368) schema 13001&lt;/PRE&gt;</description>
    <pubDate>Wed, 08 Dec 2021 17:49:48 GMT</pubDate>
    <dc:creator>Peter_Adam_SB</dc:creator>
    <dc:date>2021-12-08T17:49:48Z</dc:date>
    <item>
      <title>Totally lost at free text search with REST</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/totally-lost-at-free-text-search-with-rest/m-p/143627#M38158</link>
      <description>&lt;P&gt;I have tried to understand the following documentations:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/content-services/6.2/develop/rest-api-guide/searching/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/content-services/6.2/develop/rest-api-guide/searching/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/search-services/1.3/using/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/search-services/1.3/using/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I try to search for a compound expression: the document (or it's title, name, ...) contains 444840 OR 00444840 AND the exact term "Maklri Istvn Tams"&lt;/P&gt;&lt;P&gt;I try to use the POST API with a query:&lt;/P&gt;&lt;PRE&gt;curl --insecure -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' --header 'Authorization: Basic ***********' --data-binary '@query.json' https://devtest.****:8443
/alfresco/api/-default-/public/search/versions/1/search&lt;/PRE&gt;&lt;P&gt;and the query.json file is&lt;/P&gt;&lt;PRE&gt;{
    "query": {
       "query":"(\"444840\" OR \"00444840\") AND =\"Maklri Istvn Tams\""
    },
    "fields":["id","parentId"],
    "paging": { "maxItems": "100", "skipCount": "0" }
}&lt;/PRE&gt;&lt;P&gt;but with or without \" and = I can not get an useful result set. It breaks up "Maklri Istvn Tams" and finds the three tags, if I search for 1760000 it founds 1760020, etc.&lt;/P&gt;&lt;P&gt;Alfresco's faceted search shows promises:&lt;/P&gt;&lt;PRE&gt;8443/share/page/dp/ws/faceted-search#searchTerm=(444840 OR 00444840) AND "Maklri Istvn Tams"&amp;amp;scope=repo&amp;amp;sortField=null&lt;/PRE&gt;&lt;P&gt;gives only one result, which looks correct.&lt;/P&gt;&lt;P&gt;Is it possible to use the POST query to get the right results?&lt;/P&gt;&lt;PRE&gt;Alfresco Share v6.2.0
(r7791ffba8f0b22f1ef9fa25ba17400c4657068e3-b9, Aikau 1.0.101.19, Spring Surf 6.2.0, Spring WebScripts 7.10, Freemarker 2.3.28, Rhino 1.7.11, Yui 2.9.0-alfresco-20141223)
Alfresco Community v6.2.0
(r05dbaf43-b368) schema 13001&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Dec 2021 17:49:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/totally-lost-at-free-text-search-with-rest/m-p/143627#M38158</guid>
      <dc:creator>Peter_Adam_SB</dc:creator>
      <dc:date>2021-12-08T17:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Totally lost at free text search with REST</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/totally-lost-at-free-text-search-with-rest/m-p/143628#M38159</link>
      <description>&lt;P&gt;Is&lt;/P&gt;&lt;PRE&gt;"query":"Maklri *(0) Istvn *(0) Tams"&lt;/PRE&gt;&lt;P&gt;the best way to search for an exact term in the content of documents?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 13:24:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/totally-lost-at-free-text-search-with-rest/m-p/143628#M38159</guid>
      <dc:creator>Peter_Adam_SB</dc:creator>
      <dc:date>2021-12-09T13:24:50Z</dc:date>
    </item>
  </channel>
</rss>

