Hi All,I am trying to implement Field search using REST Search API. The JSON 
structure of all my document is as follows
{"id" : 1,"title" : "The Book Title""price" : "$100"}
and I would want to search title:Book using my search API 
("http://localhost:8040/v1/search?q=title:mini";)
I have tried using all the following options to update the settings








curl -v -X PUT  --digest --user admin:admin  -H "Content-type: 
application/json" -d '{"options": {"constraint": [{"collection": {"prefix": 
"\title"},"name": "title"}]}}' 'http://localhost:8040/v1/config/query/entitle2'








curl -v -X PUT  --digest --user admin:admin  -H "Content-type: 
application/json" -d '{"options": {"constraint": [{"collection": {"prefix": 
"title"},"name": "title"}]}}' 'http://localhost:8040/v1/config/query/entitle1'








curl -v -X PUT  --digest --user admin:admin  -H "Content-type: 
application/json" -d '{"options": {"constraint": [{"collection": {"prefix": 
"title/"},"name": "title"}]}}' 'http://localhost:8040/v1/config/query/entitle'
All the above commands worked fine and I can see all of these constraints in 
("http://localhost:8040/v1/config/query?format=json";) but none of them return 
any results.
I have following questions
1. what would be right path for my JSON? (title. title/,\title)2. is this the 
right way to customize the search API?
Thanks in advance.regards.Puneet                                          
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to