Forums › Forums › Search & Filter Pro › Results appearing before searching and no text search of custom content type
- This topic has 7 replies, 2 voices, and was last updated 7 years, 3 months ago by
Anonymous.
-
Anonymous(Private) November 16, 2017 at 3:58 pm #142338
I’ve created a text search and configured to show the results as a shortcode in the same page.
https://youandpress.com/test-search
But the results appear before even searching. And doesn’t matter what I put in the text box, the results are always the same.
I’ve checked all the options in the settings, but don’t know why this happens.
I can upload thumbnails of the configuration if needed
Trevor(Private) November 17, 2017 at 8:13 pm #142602Hi
If you have not yet customised the results.php (as described here), then the code in this post will do the empty results set for you:
https://support.searchandfilter.com/forums/topic/force-selection/#post-87657
I will login and look right now. I will be back.
Trevor(Private) November 17, 2017 at 8:21 pm #142604OK. In the Advanced Settings tab you had enabled support for Relevanssi, Relevanssi relevance order, and force is_search. The last is not needed (is_search), and the Relevanssi settings should be used IF you have the free Relevanssi plugin installed and setup, as documented here.
Anonymous(Private) November 18, 2017 at 12:23 pm #142660ok, I enabled those because nothing was working before… I not sure I understand why it works now…
However, I’m only able to get results when the words are in the title…
for example, if I want to get this item:
https://youandpress.com/imagenes/zapato-megan/if I put “Zapato megan” I’ll get it, but if I put “zapato terciopelo” which is a word present in the description, wont
If I try it in your demo page, and search for a word in the description, like here
http://demo.designsandcode.com/sfpro-movie-reviews/search/?_sf_s=Normandy&_sfm_oscar=0+11
I’ll get the result even when the word normandy is not in the title… how can I get that result?Trevor(Private) November 18, 2017 at 12:48 pm #142662The Search & Filter Pro Text Search field uses the standard WordPress search, so looks only in the Post Title and Content. To help you control this better, on the form’s Advanced settings tab you will see settings for Relevanssi.
The documentation for this is here:
https://www.designsandcode.com/documentation/search-filter-pro/3rd-party/relevanssi/
You would need to install and activate the free Relevanssi plugin as well.
Then set it up and build its index.
Some way down the form is a single entry setting to support custom fields. Taxonomies are more easily set up.
Note that we do not support any of the formatting options in Relevanssi. We use it to allow you extend what is searched, and what relevance is placed on the content.
-
AuthorPosts