Commit 162b6a064b9be04cf5754b3aa4d73643d62f1f19
1 parent
bfc0fd75
WSA-77
"Update unit tests for search structure in web service" Updated. Added missing fields. WSA-79 "cater for custom_document_no and oem_document_id in webservices" Updated. Added placeholders for future use. Committed By: Conrad Vermeulen Reviewed By: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7765 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
4 additions
and
1 deletions
search2/search/search.inc.php
| ... | ... | @@ -555,6 +555,9 @@ function processSearchExpression($query) |
| 555 | 555 | $item = array( |
| 556 | 556 | 'document_id' => (int) $hit->DocumentID, |
| 557 | 557 | |
| 558 | + 'custom_document_no' => 'n/a', | |
| 559 | + 'oem_document_no' => 'n/a', | |
| 560 | + | |
| 558 | 561 | 'relevance' => (float) $hit->Rank, |
| 559 | 562 | 'text' => (string) $noText?'':$hit->Text, |
| 560 | 563 | |
| ... | ... | @@ -576,7 +579,7 @@ function processSearchExpression($query) |
| 576 | 579 | |
| 577 | 580 | 'owned_by' => (string) $hit->Owner, |
| 578 | 581 | |
| 579 | - 'version' => (string) $hit->Version, | |
| 582 | + 'version' => (float) $hit->Version, | |
| 580 | 583 | 'is_immutable'=> (bool) $hit->Immutable, |
| 581 | 584 | 'permissions'=> $hit->Permissions, |
| 582 | 585 | ... | ... |