Displaying 1 result from an estimated 1 matches for "contenttitlequery".
2006 Jun 27
2
Using QueryParser vs building my own query
...query(
Ferret::Search::TermQuery.new(Ferret::Index::Term.new(''type'',
type)),
Ferret::Search::BooleanClause::Occur::SHOULD
)
}
#Add types query to main query
query.add_query(typesquery, Ferret::Search::BooleanClause::Occur::MUST)
#Build query to match content and title
contenttitlequery = Ferret::Search::BooleanQuery.new
contenttitlequery.add_query(
Ferret::Search::TermQuery.new(Ferret::Index::Term.new(''content'',
params[:query])),
Ferret::Search::BooleanClause::Occur::SHOULD
)
contenttitlequery.add_query(
Ferret::Search::TermQuery.new(Ferret::Index::Term.n...