store/fields: Use one MaxTermLength everywhere

One should be enough!
This commit is contained in:
Dirk-Jan C. Binnema
2022-05-09 20:10:37 +03:00
parent dc69505580
commit 7470a5f8ea
4 changed files with 5 additions and 6 deletions

View File

@ -22,9 +22,6 @@
using namespace Mu;
// Xapian does not like terms much longer than this
constexpr auto MaxTermLength = 240;
std::string
Field::xapian_term(const std::string& s) const
{

View File

@ -30,6 +30,10 @@
namespace Mu {
// Xapian does not like terms much longer than this
constexpr auto MaxTermLength = 240;
// http://article.gmane.org/gmane.comp.search.xapian.general/3656 */
struct Field {
/**
* Field Ids.