Changeset 561 for trunk/tools/assistant/lib/fulltextsearch/qqueryparser.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/tools/assistant/lib/fulltextsearch/qqueryparser.cpp
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information ([email protected])3 ** Copyright (C) 200. 4 ** 5 5 ** 6 ** This file is part of the QCLucene library and is distributable under 7 ** the terms of the LGPL license as specified in the license.txt file. 6 ** Portion Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 7 ** All rights reserved. 8 ** 9 ** This file may be used under the terms of the GNU Lesser General Public 10 ** License version 2.1 as published by the Free Software Foundation and 11 ** appearing in the file LICENSE.LGPL included in the packaging of this file. 12 ** Please review the following information to ensure the GNU Lesser General 13 ** Public License version 2.1 requirements will be met: 14 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 8 15 ** 9 16 ****************************************************************************/ … … 29 36 { 30 37 queryParser = _CL_POINTER(other.queryParser); 38 31 39 } 32 40 … … 38 46 39 47 40 QCLuceneQueryParser::QCLuceneQueryParser(const QString &field, 48 QCLuceneQueryParser::QCLuceneQueryParser(const QString &field, 41 49 QCLuceneAnalyzer &analyzer) 42 50 : d(new QCLuceneQueryParserPrivate()) … … 45 53 { 46 54 TCHAR *fieldName = QStringToTChar(field); 47 48 d->queryParser = new lucene::queryParser::QueryParser(fieldName, 55 56 d->queryParser = new lucene::queryParser::QueryParser(fieldName, 49 57 analyzer.d->analyzer); 50 58 … … 114 122 } 115 123 116 QCLuceneQuery* QCLuceneMultiFieldQueryParser::parse(const QString &query, 124 QCLuceneQuery* QCLuceneMultiFieldQueryParser::parse(const QString &query, 117 125 const QStringList &fieldList, 118 126 QCLuceneAnalyzer &analyzer) … … 144 152 qint32 flag = flags.at(i); 145 153 switch (flag) { 146 case QCLuceneMultiFieldQueryParser::REQUIRED_FIELD: { 154 case QCLuceneMultiFieldQueryParser::REQUIRED_FIELD: { 147 155 retValue->add(q, true, true, false); 148 156 } break;
Note:
See TracChangeset
for help on using the changeset viewer.