.
This commit is contained in:
+2
-2
@@ -84,12 +84,12 @@ impl SearchIndex {
|
||||
default_fields: Vec<Field>,
|
||||
) -> error::Result<Vec<String>> {
|
||||
let doc_type_term = Term::from_field_u64(Schema::type_field(), type_);
|
||||
let doc_type_query = Box::new(TermQuery::new(doc_type_term, IndexRecordOption::Basic));
|
||||
//let doc_type_query = Box::new(TermQuery::new(doc_type_term, IndexRecordOption::Basic));
|
||||
|
||||
let parser = QueryParser::for_index(&self.index, default_fields);
|
||||
let (user_query, _) = parser.parse_query_lenient(user_query);
|
||||
let query = BooleanQuery::new(vec![
|
||||
(Occur::Must, doc_type_query),
|
||||
//(Occur::Must, doc_type_query),
|
||||
(Occur::Must, user_query),
|
||||
]);
|
||||
let searcher = self.reader.searcher();
|
||||
|
||||
Reference in New Issue
Block a user