File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments