You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i try to split text which ends with the split object - index file will not be created.
For example: I have text, and i try to split it with ".", so if text ends with "." last element of the array it will be empty (even if there are spaces after, they will be trimmed with Fullproof engine). As a result callback in engine.open() doesn't execute
The text was updated successfully, but these errors were encountered:
I have found solution for this trouble. I added another condition in the common-engine.js, after that function fullproof.TextInjector.prototype.inject began to look like this:
fullproof.TextInjector.prototype.inject = function(text,value,callback) {
var self = this;
this.analyzer.getArray(text, function(array_of_words) {
if (array_of_words.length > 0) {
var synchro = fullproof.make_synchro_point(callback, array_of_words.length);
for (var i=0; i<array_of_words.length; ++i) {
var val = array_of_words[i];
if (val instanceof fullproof.ScoredEntry) {
val.value = val.value===undefined?value:val.value;
self.index.inject(val.key, val, synchro); // the line number is the value stored
} else {
self.index.inject(array_of_words[i], value, synchro); // the line number is the value stored
}
}
} else {
callback('', value);
}
});
};
If i try to split text which ends with the split object - index file will not be created.
For example: I have text, and i try to split it with ".", so if text ends with "." last element of the array it will be empty (even if there are spaces after, they will be trimmed with Fullproof engine). As a result callback in engine.open() doesn't execute
The text was updated successfully, but these errors were encountered: