~ubuntu-branches/ubuntu/vivid/sphinxsearch/vivid

« back to all changes in this revision

Viewing changes to src/sphinx.h

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-04-05 09:25:55 UTC
  • mfrom: (1.2.1) (7.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20120405092555-65tc91rowhls3kob
Tags: 2.0.4-0ubuntu1
* New upstream release (LP: #930747)
* Remove explicit depends on libmysqlcient16 (LP: #974427)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
 
// $Id: sphinx.h 3008 2011-11-13 12:36:32Z klirichek $
 
2
// $Id: sphinx.h 3131 2012-03-01 09:04:19Z deogar $
3
3
//
4
4
 
5
5
//
6
 
// Copyright (c) 2001-2011, Andrew Aksyonoff
7
 
// Copyright (c) 2008-2011, Sphinx Technologies Inc
 
6
// Copyright (c) 2001-2012, Andrew Aksyonoff
 
7
// Copyright (c) 2008-2012, Sphinx Technologies Inc
8
8
// All rights reserved
9
9
//
10
10
// This program is free software; you can redistribute it and/or modify
196
196
#define SPHINX_TAG "-dev"
197
197
#endif
198
198
 
199
 
#define SPHINX_VERSION                  "2.0.2" SPHINX_BITS_TAG SPHINX_TAG " (" SPH_SVN_TAGREV ")"
200
 
#define SPHINX_BANNER                   "Sphinx " SPHINX_VERSION "\nCopyright (c) 2001-2011, Andrew Aksyonoff\nCopyright (c) 2008-2011, Sphinx Technologies Inc (http://sphinxsearch.com)\n\n"
 
199
#define SPHINX_VERSION                  "2.0.4" SPHINX_BITS_TAG SPHINX_TAG " (" SPH_SVN_TAGREV ")"
 
200
#define SPHINX_BANNER                   "Sphinx " SPHINX_VERSION "\nCopyright (c) 2001-2012, Andrew Aksyonoff\nCopyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)\n\n"
201
201
#define SPHINX_SEARCHD_PROTO    1
202
202
 
203
203
#define SPH_MAX_WORD_LEN                42              // so that any UTF-8 word fits 127 bytes
528
528
        /// get original tokenized multiform (if any); NULL means there was none
529
529
        virtual BYTE *                                  GetTokenizedMultiform () { return NULL; }
530
530
 
531
 
        virtual bool                                    TokenIsBlended () { return m_bBlended; }
532
 
        virtual bool                                    TokenIsBlendedPart () { return m_bBlendedPart; }
 
531
        virtual bool                                    TokenIsBlended () const { return m_bBlended; }
 
532
        virtual bool                                    TokenIsBlendedPart () const { return m_bBlendedPart; }
533
533
        virtual int                                             SkipBlended () { return 0; }
534
534
 
535
535
public:
2287
2287
 
2288
2288
        struct WordStat_t
2289
2289
        {
2290
 
                int                                     m_iDocs;                        ///< document count for this term
2291
 
                int                                     m_iHits;                        ///< hit count for this term
 
2290
                int64_t                                 m_iDocs;                        ///< document count for this term
 
2291
                int64_t                                 m_iHits;                        ///< hit count for this term
2292
2292
                bool                            m_bExpanded;            ///< is this term from query itself or was expanded
2293
2293
 
2294
2294
                WordStat_t()
2300
2300
        SmallStringHash_T<WordStat_t>   m_hWordStats; ///< hash of i-th search term (normalized word form)
2301
2301
 
2302
2302
        int                                             m_iMatches;                     ///< total matches returned (upto MAX_MATCHES)
2303
 
        int                                             m_iTotalMatches;        ///< total matches found (unlimited)
 
2303
        int64_t                                 m_iTotalMatches;        ///< total matches found (unlimited)
2304
2304
 
2305
2305
        CSphString                              m_sError;                       ///< error message
2306
2306
        CSphString                              m_sWarning;                     ///< warning message
2307
2307
 
2308
2308
        CSphQueryResultMeta ();                                                                                                 ///< ctor
2309
2309
        virtual                                 ~CSphQueryResultMeta () {}                                              ///< dtor
2310
 
        void                                    AddStat ( const CSphString & sWord, int iDocs, int iHits, bool bExpanded );
 
2310
        void                                    AddStat ( const CSphString & sWord, int64_t iDocs, int64_t iHits, bool bExpanded );
2311
2311
 
2312
2312
        CSphQueryResultMeta ( const CSphQueryResultMeta & tMeta );                              ///< copy ctor
2313
2313
        CSphQueryResultMeta & operator= ( const CSphQueryResultMeta & tMeta );  ///< copy
2474
2474
{
2475
2475
public:
2476
2476
        bool                            m_bRandomize;
2477
 
        int                                     m_iTotal;
 
2477
        int64_t                         m_iTotal;
2478
2478
 
2479
2479
protected:
2480
2480
        CSphSchema                      m_tSchema;              ///< sorter schema (adds dynamic attributes on top of index schema)
2522
2522
        virtual int                     GetLength () const = 0;
2523
2523
 
2524
2524
        /// get total count of non-duplicates Push()ed through this queue
2525
 
        virtual int                     GetTotalCount () const { return m_iTotal; }
 
2525
        virtual int64_t         GetTotalCount () const { return m_iTotal; }
2526
2526
 
2527
2527
        /// get first entry ptr
2528
2528
        /// used for docinfo lookup
2794
2794
#endif // _sphinx_
2795
2795
 
2796
2796
//
2797
 
// $Id: sphinx.h 3008 2011-11-13 12:36:32Z klirichek $
 
2797
// $Id: sphinx.h 3131 2012-03-01 09:04:19Z deogar $
2798
2798
//