~ubuntu-branches/ubuntu/jaunty/beagle/jaunty-security

« back to all changes in this revision

Viewing changes to beagled/Lucene.Net/Search/Spans/SpanQuery.cs

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2008-05-04 00:31:32 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: james.westby@ubuntu.com-20080504003132-2tkm5o8moo5952ri
Tags: 0.3.7-2ubuntu1
 * Merge from Debian unstable. (LP: #225746) Remaining Ubuntu changes:
  - debian/control:
    + Rename ice{weasel,dove}-beagle to {mozilla,thunderbird}-beagle and
      and update the dependencies accordingly.
    + Change Maintainer to Ubuntu Mono Team.
  - debian/rules:
    + Install the mozilla-beagle and thunderbird-beagle extensions.
  - ice{dove,weasel}.dirs:
    + Renamed to {mozilla,thunderbird}-beagle.dirs.
    + Fixed paths to point to usr/lib/{firefox,thunderbird}

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2004 The Apache Software Foundation
3
 
 * 
4
 
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 
 * you may not use this file except in compliance with the License.
6
 
 * You may obtain a copy of the License at
 
2
 * Licensed to the Apache Software Foundation (ASF) under one or more
 
3
 * contributor license agreements.  See the NOTICE file distributed with
 
4
 * this work for additional information regarding copyright ownership.
 
5
 * The ASF licenses this file to You under the Apache License, Version 2.0
 
6
 * (the "License"); you may not use this file except in compliance with
 
7
 * the License.  You may obtain a copy of the License at
7
8
 * 
8
9
 * http://www.apache.org/licenses/LICENSE-2.0
9
10
 * 
15
16
 */
16
17
 
17
18
using System;
 
19
 
18
20
using IndexReader = Lucene.Net.Index.IndexReader;
19
21
using Query = Lucene.Net.Search.Query;
 
22
using Weight = Lucene.Net.Search.Weight;
20
23
using Searcher = Lucene.Net.Search.Searcher;
21
 
using Weight = Lucene.Net.Search.Weight;
22
24
 
23
25
namespace Lucene.Net.Search.Spans
24
26
{
25
27
        
26
28
        /// <summary>Base class for span-based queries. </summary>
27
29
        [Serializable]
28
 
        public abstract class SpanQuery:Query
 
30
        public abstract class SpanQuery : Query
29
31
        {
30
32
                /// <summary>Expert: Returns the matches for this query in an index.  Used internally
31
33
                /// to search for spans. 
36
38
                public abstract System.String GetField();
37
39
                
38
40
                /// <summary>Returns a collection of all terms matched by this query.</summary>
 
41
                /// <deprecated> use extractTerms instead
 
42
                /// </deprecated>
 
43
                /// <seealso cref="Query#ExtractTerms(Set)">
 
44
                /// </seealso>
39
45
                public abstract System.Collections.ICollection GetTerms();
40
46
                
41
47
                protected internal override Weight CreateWeight(Searcher searcher)
42
48
                {
43
49
                        return new SpanWeight(this, searcher);
44
50
                }
45
 
        }
 
51
 
 
52
        public Weight CreateWeight_ForNUnitTest(Searcher searcher)
 
53
        {
 
54
            return new SpanWeight(this, searcher);
 
55
        }
 
56
    }
46
57
}
 
 
b'\\ No newline at end of file'