Skip to content

Commit fc96a53

Browse files
committed
Обработка исключений, уточнил подсказку
1 parent b666530 commit fc96a53

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

CSP/csp/docsearch/js/app/templates/SearchAdvance.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<label style="font-size: 16pt" class="col-lg-2 col-md-2 col-sm-2 col-xs-2 control-label">
5252
<input id="check" type="checkbox" ng-model="search.rank">
5353
<span class="cr">
54-
<i class="cr-icon fa fa-check" title = "Tick this box if you want to use TFIDF Rank algorithm"></i>
54+
<i class="cr-icon fa fa-check" title = "Tick this box if you want to use TFIDF Rank algorithm (longer time, but more precise ranking)"></i>
5555
</span>
5656
</label>
5757
</div>

iKnowDoc/Search/Parser.cls

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,16 @@ ClassMethod ParseHints(textTag) As %String
105105
set substr2 = $REPLACE(substr2,">",empty)
106106
set text = $REPLACE(text,substr1,substr2)
107107
}
108-
set x = $LOCATE(text,"<.*>",,,substr)
109-
if x'=0 {
108+
set x1 = $LOCATE(text,"<.*>",,,substr)
109+
if x1'=0 {
110110
set text = $REPLACE(text,substr,empty)
111111
}
112-
set x = $LOCATE(text,"&mdash",,,substr)
113-
if x'=0 {
112+
set x2 = $LOCATE(text,"&mdash",,,substr)
113+
if x2'=0 {
114+
set text = $REPLACE(text,text,empty)
115+
}
116+
set x3 = $LOCATE(text,"/",,,substr)
117+
if x3'=0 {
114118
set text = $REPLACE(text,text,empty)
115119
}
116120
if (text="")

0 commit comments

Comments
 (0)