plone.restapi/plone-only-login: Merge pull request #383 from plone/addwildcardsearchdocclari

GitHub <jenkins-z4DKO/[email protected]>
Newsgroups gmane.comp.web.zope.plone.cvs
Message-ID <[email protected]>
Repository: plone.restapi
Branch: refs/heads/plone-only-login
Date: 2017-07-20T20:11:01+02:00
Author: Timo Stollenwerk (tisto) <[email protected]>
Commit: https://github.com/plone/plone.restapi/commit/03a40d8d4e6c57d3c9c6a9e6cc014ed9ddc6e226

Merge pull request #383 from plone/addwildcardsearchdocclarification

Add clarification when using SearchableText parameter in plone.restap…

Files changed:
M CHANGES.rst
M docs/source/searching.rst

diff --git a/CHANGES.rst b/CHANGES.rst
index f99d1992..0f83f746 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -14,6 +14,9 @@ Changelog
 - Support setting Layout on the site root.
   [jaroel]
 
+- Add clarification when using SearchableText parameter in plone.restapi to avoid confusions
+  [sneridagh]
+
 
 1.0a19 (2017-06-25)
 -------------------
diff --git a/docs/source/searching.rst b/docs/source/searching.rst
index 1b3e5ab6..91b19754 100644
--- a/docs/source/searching.rst
+++ b/docs/source/searching.rst
@@ -30,6 +30,11 @@ In order to return specific metadata columns, see the documentation of the ``met
         resultset exceeds the batch size. See :doc:`/batching` for more
         details on how to work with batched results.
 
+.. warning::
+        The @@search view or in Plone LiveSearch widget are coded in a way that the SearchableText parameter is expanded by including a * wildcard at the end.
+        This is done in order to match also the partial results of the beginning of a search term(s).
+        plone.restapi @search endpoint will not do that for you. You'll have to add it if you want to keep this feature.
+
 
 Query format
 ------------



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Plone-CVS mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.