|
... |
|
... |
31 |
// NEAR and PHRASE elements
|
31 |
// NEAR and PHRASE elements
|
32 |
vector<vector<string> > groups;
|
32 |
vector<vector<string> > groups;
|
33 |
// Group slacks (number of permitted non-matched words).
|
33 |
// Group slacks (number of permitted non-matched words).
|
34 |
// Parallel vector to the above 'groups'
|
34 |
// Parallel vector to the above 'groups'
|
35 |
vector<int> gslks;
|
35 |
vector<int> gslks;
|
|
|
36 |
void reset()
|
|
|
37 |
{
|
|
|
38 |
terms.clear();
|
|
|
39 |
groups.clear();
|
|
|
40 |
gslks.clear();
|
|
|
41 |
}
|
36 |
};
|
42 |
};
|
37 |
|
43 |
|
38 |
/**
|
44 |
/**
|
39 |
* A class for highlighting search results. Overridable methods allow
|
45 |
* A class for highlighting search results. Overridable methods allow
|
40 |
* for different styles. We can handle plain text or html input. In the latter
|
46 |
* for different styles. We can handle plain text or html input. In the latter
|