Title: change default query behaviour
Last modified: August 31, 2016

---

# change default query behaviour

 *  Resolved [zelle7](https://wordpress.org/support/users/zelle7/)
 * (@zelle7)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/change-default-query-behaviour/)
 * Hi
    the plugin works quite fine, but I had to do some changes in the schema.xml
   and solrconfig.xml files to tweak the results for our usage (e.g. boosting the
   title and boost certain custom post types).
 * My question is: Why does the plugin search uses the q=text:$querytext form, as
   with this case boosting certain fields does not lead to the same results as in
   the admin interface of the solr server.
    I’ve tried to adapt the search client
   and remove the “text” param so that the query is now q=$querytext.
 * Are there any benefits from using the form q=text:$querytext, which I do oversee?
   Because it seem to behave (except that I get now the boosted result) the same
   way without it.
 * Thanks!
    Christian
 * [https://wordpress.org/plugins/wpsolr-search-engine/](https://wordpress.org/plugins/wpsolr-search-engine/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/change-default-query-behaviour/#post-7069916)
 * Hi,
 * In later versions, you will be able to customize the search query.
 * I noticed some facets issues when using q=$querytext, hence the use of q=text:
   $querytext.
 *  Thread Starter [zelle7](https://wordpress.org/support/users/zelle7/)
 * (@zelle7)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/change-default-query-behaviour/#post-7069927)
 * ok thx for the quick answer, I will stay with this solution for now, if I find
   something strange and I can figure it out I will send you a merge request.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘change default query behaviour’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpsolr-search-engine_b2dbdc.svg)
 * [WPSOLR - Elasticsearch and Solr search](https://wordpress.org/plugins/wpsolr-search-engine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpsolr-search-engine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpsolr-search-engine/)
 * [Active Topics](https://wordpress.org/support/plugin/wpsolr-search-engine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpsolr-search-engine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpsolr-search-engine/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [zelle7](https://wordpress.org/support/users/zelle7/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/change-default-query-behaviour/#post-7069927)
 * Status: resolved