Changeset 561 for trunk/tools/assistant/lib/fulltextsearch/qsearchable.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/qsearchable.cpp
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information (qt-info@nokia.com) 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. 3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 5 ** 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 ****************************************************************************/ … … 27 34 { 28 35 searchable = _CL_POINTER(other.searchable); 36 deleteCLuceneSearchable = other.deleteCLuceneSearchable; 29 37 } 30 38 … … 64 72 } 65 73 66 QCLuceneHits QCLuceneSearcher::search(const QCLuceneQuery &query, 74 QCLuceneHits QCLuceneSearcher::search(const QCLuceneQuery &query, 67 75 const QCLuceneFilter &filter) 68 76 { … … 70 78 } 71 79 72 QCLuceneHits QCLuceneSearcher::search(const QCLuceneQuery &query, 80 QCLuceneHits QCLuceneSearcher::search(const QCLuceneQuery &query, 73 81 const QCLuceneSort &sort) 74 82 { … … 76 84 } 77 85 78 QCLuceneHits QCLuceneSearcher::search(const QCLuceneQuery &query, 86 QCLuceneHits QCLuceneSearcher::search(const QCLuceneQuery &query, 79 87 const QCLuceneFilter &filter, 80 88 const QCLuceneSort &sort) … … 87 95 : QCLuceneSearcher() 88 96 { 89 lucene::search::IndexSearcher *searcher = 97 lucene::search::IndexSearcher *searcher = 90 98 new lucene::search::IndexSearcher(path); 91 99 … … 132 140 : QCLuceneSearcher() 133 141 { 134 lucene::search::Searchable** list= 142 lucene::search::Searchable** list= 135 143 _CL_NEWARRAY(lucene::search::Searchable*, searchables.count()); 136 144 … … 162 170 if (searcher == 0) 163 171 return 0; 164 172 165 173 return qint32(searcher->subDoc(int32_t(index))); 166 174 } … … 173 181 if (searcher == 0) 174 182 return 0; 175 183 176 184 return qint32(searcher->subSearcher(int32_t(index))); 177 185 } … … 184 192 if (searcher == 0) 185 193 return 0; 186 194 187 195 return qint32(searcher->searcherIndex(int32_t(index))); 188 196 }
Note:
See TracChangeset
for help on using the changeset viewer.