Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291469

Search terms: nodes dont appear when using multiple arguments

$
0
0

I have set up a view with a context search filter (search terms). So putting just 1 keyword as argument, the view gives me results. But if there are more words, there are always no results. I am 100% sure that this view must return results. When I use same search terms in "search/node/key1 key2..." the search gives me the results. There are no filters or other methods which exclude my wanted result items.

Here is the SQL statement with 1 keyword:

SELECT node.nid AS nid, node.title AS node_title, node.created AS node_created, SUM(search_index.score * search_total.count) AS score, 'node' AS field_data_field_largeimages_node_entity_type
FROM
{node} node
LEFT JOIN {search_index} search_index ON node.nid = search_index.sid
LEFT JOIN {search_total} search_total ON search_index.word = search_total.word
WHERE ((( (search_index.type = 'node') AND( (search_index.word = 'example') )))AND(( (node.status = '1') AND (node.type IN  ('article')) AND (node.created >= 1338764465-3456000) )))
GROUP BY search_index.sid, score, nid, field_data_field_largeimages_node_entity_type, node_title, node_created
HAVING (( (COUNT(*) >= '1') ))
ORDER BY node_created DESC

which returns results.

This is a statement with 2 keywords, returning nothing but should:

SELECT node.nid AS nid, node.title AS node_title, node.created AS node_created, SUM(search_index.score * search_total.count) AS score, 'node' AS field_data_field_largeimages_node_entity_type
FROM
{node} node
LEFT JOIN {search_index} search_index ON node.nid = search_index.sid
LEFT JOIN {search_total} search_total ON search_index.word = search_total.word
WHERE ((( (search_index.type = 'node') AND( (search_index.word = 'example1') OR (search_index.word = 'example2') )))AND(( (node.status = '1') AND (node.type IN  ('article')) AND (node.created >= 1338764592-3456000) )))
GROUP BY search_index.sid, score, nid, field_data_field_largeimages_node_entity_type, node_title, node_created
HAVING (( (COUNT(*) >= '2') ))
ORDER BY node_created DESC

Attached a view export.

Thanks for your help.


Viewing all articles
Browse latest Browse all 291469

Trending Articles