Advertisement:

Author Topic: There are no results matching v3.71  (Read 606 times)

jemsword

  • Newbie
  • *
  • Posts: 2
There are no results matching v3.71
« on: March 22, 2017, 05:30:52 am »
HI~~
I completed the OSclass 3.71 installation & added the first ad ,title is dog,
But ,Test search function always: There are no results matching

The download installation does not seem to use the search function.version 3.71
In addition, the use of Osclass hosted host search function is normal, version 3.61






any help plz?

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689

jemsword

  • Newbie
  • *
  • Posts: 2
Re: There are no results matching v3.71
« Reply #2 on: March 23, 2017, 08:13:10 am »
First, thank you very much for your response :)
The Search function problem is in the use of Chinese,
for example: Taiwan department store -->"台灣百貨商店",Must match six Chinese words,& no space,
Is there any recommended solution?

Thank you very much.


_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: There are no results matching v3.71
« Reply #3 on: March 23, 2017, 10:15:53 am »
That's a different issue then. Here's some more information : http://forums.osclass.org/general-help/how-to-search-in-east-asian-characters/

In short, search in asian languages is a more complex issue than it seems. You need to modify lines 820 & 941 of oc-includes/osclass/model/Search.php
https://github.com/osclass/Osclass/blob/master/oc-includes/osclass/model/Search.php#L820

to something like this :

Code: [Select]
$this->dao->where(sprintf("(d.s_title LIKE '%%%s%%' OR d.s_description LIKE '%%%s%%')", $this->sPattern, $this->sPattern));


and line 1317 too, but to a different thing.

There might be some other/better solution in the forums, you should use keywords like fulltext, partial search, ...