Hello all,
Please advise my previous mail.
Best regards
Oleg.
From: Tsentsiper, Oleg
Sent: Wednesday, May 25, 2016 10:48 AM
To: 'che-dev@xxxxxxxxxxx' <che-dev@xxxxxxxxxxx>
Subject: Che search question.
Hello all,
I trying to do content search(text search) with string ends with space characters and looks for some problems
I have a file that contains some content(For example: "I want to find some word") and in the case when I want to find word "some" or "some " à it's works perfect, I got response with file name and content.
When I try to find "some " (word with 2 space characters) then
Actual result : I got a file name without content.
Expected result : The result must be empty (I don't have files there contains statement "some " (word with 2 space characters));
Example:
Request : search/?text=some%20&maxItems=300 (I trying to find word + space character)
Response: [{"name":"tempFile.js","attributes":{},"modified":1464013982000,"type":"file","path":"/testSearch/searches/tempFile.js","created":-1,"mediaType":"text/plain","contentLength":118,"links":[{"href":"https:/…/testSearch/searches/tempFile.js","parameters":[],"rel":"get
content","method":"GET","produces":"text/plain"},{"href":"https://…/searches/tempFile.js","parameters":[],"rel":"update content","method":"PUT","consumes":"*/*"},{"href":"https://.../searches/tempFile.js","parameters":[],"rel":"delete","method":"DELETE"}]}]
Wrong example:
Request : search/?text=some%20%20&maxItems=300 (The statement "some " is not in content, but I have same response with previous example)
Response: [{"name":"tempFile.js","attributes":{},"modified":1464013982000,"type":"file","path":"/testSearch/searches/tempFile.js","created":-1,"mediaType":"text/plain","contentLength":118,"links":[{"href":"https:/…/testSearch/searches/tempFile.js","parameters":[],"rel":"get
content","method":"GET","produces":"text/plain"},{"href":"https://…/searches/tempFile.js","parameters":[],"rel":"update content","method":"PUT","consumes":"*/*"},{"href":"https://.../searches/tempFile.js","parameters":[],"rel":"delete","method":"DELETE"}]}]
Please advice.
Best Regards,
Oleg.