I want to use a Finder block on my contact form as a way for people to search for their answer before submitting their question via the contact form. I've run into the following problems so far.
1. The results are only being picked up from forum posts and no other node types. I have results matching set to "Contains - Results contain the submitted values." and "Match any element."
2. I'm only getting 1 result even though I have the Pager set at "10"
3. In the Finder Form Elements choices I have "All" selected as not to restrict the results. I tried Find items by this field: selecting "Node: Nid" and "Node: body" but neither selection has resulted in more than one result and never a FAQ node.
Any ideas?
Thanks.
Comments
Comment #1
danielb commentedAre you using a view to get the results? Perhaps pasting an export of your finder here in 'code' tags might help.
Comment #2
fuquam commentedHere it is. I did notice that selecting "node: body, node: teaser, node: format" actually select the array 'node_revisions.body' 'node_revisions.teaser' 'node_revisions.format' which could be the problem since I'm not looking to search the revisions rather the actual node body and titles, especially in regards to the FAQ nodes. See if there is anything you notice. Thanks in advance.
Comment #3
danielb commentedNot sure, do people have access to see all those other nodes?
Do you get a pager, or just one result in total? Perhaps there is only one result?
I'm not sure I understand what you're saying, and this is the first time you've mentioned FAQ nodes - what does that have to do with anything? Your finder is certainly not set up as a FAQ finder or anything like that.
Couple other things:
- That is a very inefficient finder, you are searching too many fields (I'm surprised finder doesn't just crash when you try to use it), and the fields you have chosen don't make sense. It is redundant and I don't think you've thought about it carefully enough. I think you only need title and body, the rest of that stuff is just adding overhead. As an autocomplete it would be ideal with just the title.
- You have 'Finder Wizard' turned on, but it is probably not needed for this finder. I dont' know which version you're using, but the latest one is a bit broken too. :/
Comment #4
fuquam commentedYes users have access to all node types.
Yes but I'm only getting one result. If I use a single word search I'll get more. I'd like the results to encompass any and all words from the input.
See my original post. I said "I tried Find items by this field: selecting "Node: Nid" and "Node: body" but neither selection has resulted in more than one result and never a FAQ node." I was hoping finder could search more than one node type. Its not picking up FAQ nodes at all.
My searching too many fields is a result of trial and error since Finder wasn't picking up anything I broadened the search. I've since turned the finder wizard off. I did figure out its s bit broken.
Thanks for the reply.
Comment #5
danielb commentedoh so you want finder to delimit typed keywords and then 'and' them together - it doesn't do that, but it is probably a good feature.
Comment #6
danielb commentedComment #7
fuquam commentedYes. If it did that then I think it would work for me.
Comment #8
danielb commentedI've committed an experimental implementation of this. should appear in the dev snapshot soon.
Comment #10
dave_______1 commentedHi Daniel,
First off I want to say great work, this module really is a must for any e-commerce site.
I have found one problem with it and I think it's the same as this issue.
If I choose "Contains - Results contain the submitted values" and I type in "Dreambox 800" I would expect to get "Dreambox DM 800" in my search results.
This is true for the autocomplete part, it shows "Dreambox DM 800" but if I press enter I don't get this on the page.
I am left to send the user to the search page which isn't formatted anywhere near as well.
Please try this on the top of the page here: http://satandcable.com
Here is my export:
array(
'finder_id' => '5',
'base' => 'node',
'title' => 'Search:',
'description' => 'This search wiill check through all the product nodes',
'path' => 'search/all/products',
'block' => '1',
'settings' => array(
'form_on_page' => 1,
'form' => array(
'prefix' => '',
'prefix_format' => '1',
'suffix' => '',
'suffix_format' => '1',
'button_text' => 'Find',
'go_text' => 'Go',
),
'advanced' => array(
'filter' => 1,
'submission' => 0,
'ahah' => 1,
'ahah_effect' => 'fade',
'element_combination' => '1',
'pager' => '10',
'match' => 'contains',
'goto' => 'best',
'hide_args' => 1,
'arg_sep' => ',',
'show_links' => 1,
'show_admin_links' => 1,
'search' => '1',
),
),
'elements' => array(
'0' => array(
'finder_element_id' => '5',
'finder_id' => '5',
'element' => 'autocomplete',
'title' => 'Product search',
'weight' => '0',
'settings' => array(
'form' => array(
'description' => '',
'prefix' => '',
'prefix_format' => '1',
'suffix' => '',
'suffix_format' => '1',
'default_value' => '',
'required' => 0,
'field_prefix' => '',
'field_suffix' => '',
'maxlength' => '',
'size' => '30',
'max_suggestions' => '10',
'match' => 'contains',
'autosubmit' => 1,
),
'choices' => array(
'field' => array(
'node.title' => 'node.title',
'node_revisions.teaser' => 'node_revisions.teaser',
),
'sort' => 0,
'node_types' => array(
'product' => 'product',
'product_kit' => 'product_kit',
),
'published' => 1,
),
),
'element_handler' => array(
'#title' => 'Autocomplete textfield',
'#module' => 'finder_autocomplete',
),
'#_finder_object' => '1',
),
),
'elements_index' => array(
'5' => 0,
),
'base_handler' => array(
'#title' => 'Node finder',
'#module' => 'finder_node',
),
'admin_links' => array(
'search/all/products' => 'View \"Path\"',
'admin/build/finder/5/edit' => 'Edit',
),
'links' => array(),
'#_finder_object' => '1',
)
Please let me know what you think.
Thanks.
Dave.