Skip to content

Commit af2cb62

Browse files
committed
Исправление подсказок
1 parent 688b98c commit af2cb62

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/cls/iKnowDoc/Search/Domain.cls

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,13 @@ ClassMethod GetSimilar(SearchString) As %Status
1717
// Getting data from Result array and pushing to the dynamic object
1818
//zw Result
1919
set Result(12) = $lb(999999," ",0,0)
20-
for i=0:1:10 {
20+
for i=1:1:10 {
2121
set оrd = $order(Result(i),1,Data)
22-
//w "before ",$li(Data,2),!
23-
//set string = ##class(iKnowDoc.Search.Parser).ParseHints($li(Data,2))
24-
//w "string ",string,!
25-
set string =$li(Data,2)
26-
if $EXTRACT(string,$LENGTH(string))=";"{
27-
set string=$EXTRACT(string,1,($LENGTH(string)-1))
22+
if $li(Result(i),4)>2 {
23+
set string =$li(Data,2)
24+
} else {
25+
set string =" "
2826
}
29-
//set tJSON = { "value":(string) }
3027
set tJSON = { "value":($ZCONVERT(string,"I","HTML")) }
3128
do ResultJSON.entities.%Push(tJSON)
3229
}

0 commit comments

Comments
 (0)