php - Apache Solr - Unknown Sort Order

68

In my watchdog logs, I am getting the following error: Unknown sort order: The request sent by the client was syntactically incorrect (Unknown sort order: for weddings).

This is the var_dump of$qry ($qry = new Solr_Query())

object(Solr_Query)#28 (7) { 
    ["terms"]=> NULL 
    ["keys"]=> string(31) " arts & crafts for weddings" 
    ["filters"]=> string(11) " type:frame" 
    ["sort"]=> string(14) "timestamp desc" 
    ["perpage"]=> int(24) 
    ["page"]=> int(0) 
    ["params"]=> array(0) { } 
} 

Using Apache Tomcat/6.0.18, Drupal 6

EDIT: It seems the ampersand is causing the issue. When I remove that, there is no error. Also having quotes in the search term results in an error.

People are also looking for solutions to the problem: php - Change logo destination URL for only one page

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.