@@ 67-74 (lines=8) @@ | ||
64 | * @param string $term Raw search term |
|
65 | * @return SqlSearchResultSet |
|
66 | */ |
|
67 | function searchText( $term ) { |
|
68 | if ( $term == '' ) { |
|
69 | return new SqlSearchResultSet( false, '' ); |
|
70 | } |
|
71 | ||
72 | $resultSet = $this->db->query( $this->getQuery( $this->filter( $term ), true ) ); |
|
73 | return new SqlSearchResultSet( $resultSet, $this->searchTerms ); |
|
74 | } |
|
75 | ||
76 | /** |
|
77 | * Perform a title-only search query and return a result set. |
|
@@ 82-89 (lines=8) @@ | ||
79 | * @param string $term Raw search term |
|
80 | * @return SqlSearchResultSet |
|
81 | */ |
|
82 | function searchTitle( $term ) { |
|
83 | if ( $term == '' ) { |
|
84 | return new SqlSearchResultSet( false, '' ); |
|
85 | } |
|
86 | ||
87 | $resultSet = $this->db->query( $this->getQuery( $this->filter( $term ), false ) ); |
|
88 | return new SqlSearchResultSet( $resultSet, $this->searchTerms ); |
|
89 | } |
|
90 | ||
91 | /** |
|
92 | * Return a partial WHERE clause to limit the search to the given namespaces |