|
a/src/rcldb/searchdata.h |
|
b/src/rcldb/searchdata.h |
|
... |
|
... |
407 |
* A future version should use a standard phrase with an anchor to the
|
407 |
* A future version should use a standard phrase with an anchor to the
|
408 |
* start if the path starts with /. As this implies an index format
|
408 |
* start if the path starts with /. As this implies an index format
|
409 |
* change but is no important enough to warrant it, this has to wait for
|
409 |
* change but is no important enough to warrant it, this has to wait for
|
410 |
* the next format change.
|
410 |
* the next format change.
|
411 |
*/
|
411 |
*/
|
412 |
class SearchDataClausePath : public SearchDataClause {
|
412 |
class SearchDataClausePath : public SearchDataClauseSimple {
|
413 |
public:
|
413 |
public:
|
414 |
SearchDataClausePath(const std::string& txt, bool excl = false)
|
414 |
SearchDataClausePath(const std::string& txt, bool excl = false)
|
415 |
: SearchDataClause(SCLT_PATH), m_text(txt)
|
415 |
: SearchDataClauseSimple(SCLT_PATH, txt, "dir")
|
416 |
{
|
416 |
{
|
417 |
m_exclude = excl;
|
417 |
m_exclude = excl;
|
418 |
m_haveWildCards = false;
|
418 |
m_haveWildCards = false;
|
419 |
}
|
419 |
}
|
420 |
|
420 |
|
|
... |
|
... |
425 |
virtual void getTerms(HighlightData&) const
|
425 |
virtual void getTerms(HighlightData&) const
|
426 |
{
|
426 |
{
|
427 |
}
|
427 |
}
|
428 |
|
428 |
|
429 |
virtual bool toNativeQuery(Rcl::Db &, void *);
|
429 |
virtual bool toNativeQuery(Rcl::Db &, void *);
|
430 |
virtual const std::string& gettext() const
|
|
|
431 |
{
|
|
|
432 |
return m_text;
|
|
|
433 |
}
|
|
|
434 |
|
430 |
|
435 |
protected:
|
|
|
436 |
std::string m_text;
|
|
|
437 |
};
|
431 |
};
|
438 |
|
432 |
|
439 |
/**
|
433 |
/**
|
440 |
* A clause coming from a NEAR or PHRASE entry field. There is only one
|
434 |
* A clause coming from a NEAR or PHRASE entry field. There is only one
|
441 |
* std::string group, and a specified distance, which applies to it.
|
435 |
* std::string group, and a specified distance, which applies to it.
|