Changeset 561 for trunk/tools/assistant/lib/fulltextsearch
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 35 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/qanalyzer.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 ****************************************************************************/ … … 28 35 { 29 36 analyzer = _CL_POINTER(other.analyzer); 37 deleteCLuceneAnalyzer = other.deleteCLuceneAnalyzer; 30 38 } 31 39 -
trunk/tools/assistant/lib/fulltextsearch/qanalyzer_p.h
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ -
trunk/tools/assistant/lib/fulltextsearch/qclucene-config_p.h
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ -
trunk/tools/assistant/lib/fulltextsearch/qclucene_global_p.h
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 #include <QtCore/QChar> 30 37 #include <QtCore/QString> 38 39 #if !defined(_MSC_VER) && defined(_CL_HAVE_WCHAR_H) && defined(_CL_HAVE_WCHAR_T) 40 # if !defined(TCHAR) 41 # define TCHAR wchar_t 42 # endif 43 #else 44 # include <windows.h> 45 #endif 31 46 32 47 QT_BEGIN_HEADER … … 88 103 #endif 89 104 90 #if !defined(_MSC_VER) && defined(_CL_HAVE_WCHAR_H) && defined(_CL_HAVE_WCHAR_T)91 # if !defined(TCHAR)92 # define TCHAR wchar_t93 # endif94 #else95 # include <windows.h>96 #endif97 98 105 namespace { 99 106 TCHAR* QStringToTChar(const QString &str) -
trunk/tools/assistant/lib/fulltextsearch/qdocument.cpp
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ … … 30 37 { 31 38 document = _CL_POINTER(other.document); 39 deleteCLuceneDocument = other.deleteCLuceneDocument; 32 40 } 33 41 -
trunk/tools/assistant/lib/fulltextsearch/qdocument_p.h
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ -
trunk/tools/assistant/lib/fulltextsearch/qfield.cpp
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ … … 24 31 deleteCLuceneField = true; 25 32 } 26 33 27 34 QCLuceneFieldPrivate::QCLuceneFieldPrivate(const QCLuceneFieldPrivate &other) 28 35 : QSharedData() 29 36 { 30 37 field = _CL_POINTER(other.field); 38 deleteCLuceneField = other.deleteCLuceneField; 31 39 } 32 40 … … 51 59 TCHAR* fieldName = QStringToTChar(name); 52 60 TCHAR* fieldValue = QStringToTChar(value); 53 61 54 62 d->field = new lucene::document::Field(fieldName, fieldValue, configs); 55 63 … … 67 75 reader->d->deleteCLuceneReader = false; // clucene takes ownership 68 76 d->field = new lucene::document::Field(fieldName, reader->d->reader, configs); 69 77 70 78 delete [] fieldName; 71 79 } -
trunk/tools/assistant/lib/fulltextsearch/qfield_p.h
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ -
trunk/tools/assistant/lib/fulltextsearch/qfilter.cpp
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ … … 27 34 { 28 35 filter = _CL_POINTER(other.filter); 36 deleteCLuceneFilter = other.deleteCLuceneFilter; 29 37 } 30 38 -
trunk/tools/assistant/lib/fulltextsearch/qfilter_p.h
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ -
trunk/tools/assistant/lib/fulltextsearch/qhits.cpp
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ … … 23 30 deleteCLuceneHits = true; 24 31 } 25 32 26 33 QCLuceneHitsPrivate::QCLuceneHitsPrivate(const QCLuceneHitsPrivate &other) 27 34 : QSharedData() 28 35 { 29 36 hits = _CL_POINTER(other.hits); 37 deleteCLuceneHits = other.deleteCLuceneHits; 30 38 } 31 39 … … 37 45 38 46 39 QCLuceneHits::QCLuceneHits(const QCLuceneSearcher &searcher, 47 QCLuceneHits::QCLuceneHits(const QCLuceneSearcher &searcher, 40 48 const QCLuceneQuery &query, const QCLuceneFilter &filter) 41 49 : d(new QCLuceneHitsPrivate()) -
trunk/tools/assistant/lib/fulltextsearch/qhits_p.h
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ -
trunk/tools/assistant/lib/fulltextsearch/qindexreader.cpp
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ … … 28 35 { 29 36 reader = _CL_POINTER(other.reader); 37 deleteCLuceneIndexReader = other.deleteCLuceneIndexReader; 30 38 } 31 39 -
trunk/tools/assistant/lib/fulltextsearch/qindexreader_p.h
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ -
trunk/tools/assistant/lib/fulltextsearch/qindexwriter.cpp
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ … … 28 35 { 29 36 writer = _CL_POINTER(other.writer); 37 deleteCLuceneIndexWriter = other.deleteCLuceneIndexWriter; 30 38 } 31 39 -
trunk/tools/assistant/lib/fulltextsearch/qindexwriter_p.h
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ -
trunk/tools/assistant/lib/fulltextsearch/qquery.cpp
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 query = _CL_POINTER(other.query); 38 deleteCLuceneQuery = other.deleteCLuceneQuery; 31 39 } 32 40 -
trunk/tools/assistant/lib/fulltextsearch/qquery_p.h
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ -
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 (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 deleteCLuceneQueryParser = other.deleteCLuceneQueryParser; 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; -
trunk/tools/assistant/lib/fulltextsearch/qqueryparser_p.h
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ -
trunk/tools/assistant/lib/fulltextsearch/qreader.cpp
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ … … 17 24 QT_BEGIN_NAMESPACE 18 25 19 QCLuceneReaderPrivate::QCLuceneReaderPrivate() 26 QCLuceneReaderPrivate::QCLuceneReaderPrivate() 20 27 : QSharedData() 21 { 22 reader = 0; 28 { 29 reader = 0; 23 30 deleteCLuceneReader = true; 24 31 } … … 26 33 QCLuceneReaderPrivate::QCLuceneReaderPrivate(const QCLuceneReaderPrivate &other) 27 34 : QSharedData() 28 { 29 reader = _CL_POINTER(other.reader); 35 { 36 reader = _CL_POINTER(other.reader); 37 deleteCLuceneReader = other.deleteCLuceneReader; 30 38 } 31 39 32 QCLuceneReaderPrivate::~QCLuceneReaderPrivate() 33 { 40 QCLuceneReaderPrivate::~QCLuceneReaderPrivate() 41 { 34 42 if (deleteCLuceneReader) 35 43 _CLDECDELETE(reader); 36 44 } 37 38 45 39 46 QCLuceneReader::QCLuceneReader() … … 63 70 } 64 71 65 QCLuceneStringReader::QCLuceneStringReader(const QString &value, qint32 length, 72 QCLuceneStringReader::QCLuceneStringReader(const QString &value, qint32 length, 66 73 bool copyData) 67 74 : QCLuceneReader() -
trunk/tools/assistant/lib/fulltextsearch/qreader_p.h
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ … … 45 52 { 46 53 public: 47 QCLuceneReaderPrivate(); 54 QCLuceneReaderPrivate(); 48 55 QCLuceneReaderPrivate(const QCLuceneReaderPrivate &other); 49 56 50 57 ~QCLuceneReaderPrivate(); 51 58 52 59 Reader* reader; 53 60 bool deleteCLuceneReader; -
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 } -
trunk/tools/assistant/lib/fulltextsearch/qsearchable_p.h
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ -
trunk/tools/assistant/lib/fulltextsearch/qsort.cpp
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ … … 28 35 { 29 36 sort = _CL_POINTER(other.sort); 37 deleteCLuceneSort = other.deleteCLuceneSort; 30 38 } 31 39 -
trunk/tools/assistant/lib/fulltextsearch/qsort_p.h
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ -
trunk/tools/assistant/lib/fulltextsearch/qterm.cpp
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ … … 28 35 { 29 36 term = _CL_POINTER(other.term); 37 deleteCLuceneTerm = other.deleteCLuceneTerm; 30 38 } 31 39 -
trunk/tools/assistant/lib/fulltextsearch/qterm_p.h
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ -
trunk/tools/assistant/lib/fulltextsearch/qtoken.cpp
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ … … 28 35 { 29 36 token = _CL_POINTER(other.token); 37 deleteCLuceneToken = other.deleteCLuceneToken; 30 38 } 31 39 -
trunk/tools/assistant/lib/fulltextsearch/qtoken_p.h
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ -
trunk/tools/assistant/lib/fulltextsearch/qtokenizer.cpp
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ -
trunk/tools/assistant/lib/fulltextsearch/qtokenizer_p.h
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ -
trunk/tools/assistant/lib/fulltextsearch/qtokenstream.cpp
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/ … … 27 34 { 28 35 tokenStream = _CL_POINTER(other.tokenStream); 36 deleteCLuceneTokenStream = other.deleteCLuceneTokenStream; 29 37 } 30 38 -
trunk/tools/assistant/lib/fulltextsearch/qtokenstream_p.h
r2 r561 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 200 9 Nokia Corporation and/or its subsidiary(-ies).4 ** Contact: Qt Software Information (qt-info@nokia.com)3 ** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. 4 ** All rights reserved. 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 ****************************************************************************/
Note:
See TracChangeset
for help on using the changeset viewer.