GMishx commented on issue #4997:
URL: https://github.com/apache/couchdb/issues/4997#issuecomment-2024866438

   Here are the outputs as requested. I am getting same results for GET and 
POST queries.
   
   Output of analyze:
   ```
   $ curl --user "admin:admin" --silent 
'http://localhost:5984/_nouveau_analyze' -X POST -H 'Content-Type: 
application/json' -d '{"analyzer": "keyword", "text": "4.2.0"}' | jq
   {
     "tokens": [
       "4.2.0"
     ]
   }
   ```
   
   Output of `version:4.2.0`:
   ```
   $ curl --user "admin:admin" --silent 
'http://localhost:5984/sw360db/_design/lucene/_nouveau/projects' -X POST -H 
'Content-Type: application/json' -d '{"q": "version:4.2.0"}' | jq
   {
     "total_hits_relation": "EQUAL_TO",
     "total_hits": 0,
     "ranges": null,
     "hits": [],
     "counts": null,
     "bookmark": "W10="
   }
   ```
   
   Output of `version:"4.2.0"`:
   ```
   $ curl --user "admin:admin" --silent 
'http://localhost:5984/sw360db/_design/lucene/_nouveau/projects' -X POST -H 
'Content-Type: application/json' -d '{"q": "version:\"4.2.0\""}' | jq
   {
     "total_hits_relation": "EQUAL_TO",
     "total_hits": 0,
     "ranges": null,
     "hits": [],
     "counts": null,
     "bookmark": "W10="
   }
   ```
   
   Output with the doc match:
   ```
   $ curl --user "admin:admin" --silent 
'http://localhost:5984/sw360db/_design/lucene/_nouveau/projects' -X POST -H 
'Content-Type: application/json' -d '{"q": 
"_id:c26ccf0179c14f22bf6f9d0d55acd2dc"}' | jq
   {
     "total_hits_relation": "EQUAL_TO",
     "total_hits": 1,
     "ranges": null,
     "hits": [
       {
         "order": [
           {
             "value": 0.44583148,
             "@type": "float"
           },
           {
             "value": "c26ccf0179c14f22bf6f9d0d55acd2dc",
             "@type": "string"
           }
         ],
         "id": "c26ccf0179c14f22bf6f9d0d55acd2dc",
         "fields": {
           "version": "4.2.0",
           "state": "ACTIVE",
           "projectType": "CUSTOMER",
           "name": "fossology",
           "clearingState": "IN_PROGRESS",
           "businessUnit": "DEPARTMENT"
         }
       }
     ],
     "counts": null,
     "bookmark": 
"W1t7InZhbHVlIjowLjQ0NTgzMTQ4LCJAdHlwZSI6ImZsb2F0In0seyJ2YWx1ZSI6ImMyNmNjZjAxNzljMTRmMjJiZjZmOWQwZDU1YWNkMmRjIiwiQHR5cGUiOiJzdHJpbmcifV1d"
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to