elfigos
Forum Replies Created
-
Suppose my post is “asdf”, if I search “as” I can find it, but if I search “s” it gives me only 3 results which don’t even match with the search term. some other single characters are not working even if I set
add_filter( 'relevanssi_block_one_letter_searches', '__return_false');
It was all a misunderstanding, I kept searching with only one character….. that’s why I couldn’t find any result… I didn’t tried with multiple characters(not alphabet letters) until you told me relevanssi by default does not handle single character search that’s why I thought it doesn’t work at all with Chinese, Korean and Japanese characters…
I added
add_filter( 'relevanssi_block_one_letter_searches', '__return_false' );
But it’s returning strange results even with alphabet words. It shows only 3 results for all searches with one letter and those results are not the right ones.
What seems strange is that you said it needs to split the words but Relevanssi gives me no results even if I search only one character.
- This reply was modified 3 years, 9 months ago by elfigos.
Hi, sorry for the delay. I changed the review sorry for that immediate bad review but I was a little upset about other stuff, I was really busy in the few past weeks and forgot this issue, now I installed Jieba but when I search something it gives “jieba” function not found.
I transferred the repository to my own plugin folder, followed the commands below:
git clone https://github.com/jonnywang/phpjieba.git cd phpjieba/cjieba make cd .. phpize ./configure make make install
Added these lines of code on my plugin main file:
ini_set('jieba.enable', 1); ini_set('jieba.dict_path', 'widgets/phpjieba-master/cjieba/dict');
And added your code on functions.php:
add_filter( 'relevanssi_remove_punctuation', 'rlv_use_jieba' ); function rlv_use_jieba( $string ) { $string = jieba( $string, 1, 1500 ); $string = @implode( ' ', $string ); return $string; }
Forum: Plugins
In reply to: [Post Views Counter] Get post views by post idFound it here:
https://dfactory.eu/docs/post-views-counter/developers-api/
pvc_get_post_views( $post_id = 0 );
Forum: Plugins
In reply to: [Longer Permalinks] Deactivate plugin only for new postsThanks I got it, what I mean is can I stop future posts saving slug in postmeta?
Forum: Plugins
In reply to: [Longer Permalinks] Deactivate plugin only for new postsI noticed that longer permalinks are saved on post meta database table
Forum: Plugins
In reply to: [Permalink Manager Lite] Conditional custom fields permalinkThank you for the reply, I have sent you an email.
Forum: Plugins
In reply to: [Permalink Manager Lite] Extra documentation on settings pagethanks!
Forum: Themes and Templates
In reply to: [OceanWP] get_post_meta not working on OceanWp child themeget_the_ID() is working
Forum: Plugins
In reply to: [Permalink Manager Lite] Filter Permalink Structure TagThank you!
My database and tables are all using utf8mb4_unicode_520_ci
What do you mean by “use UTF8”? Need to change something on database or just add the code in the html header?
Forum: Developing with WordPress
In reply to: Migrate Taxonomy’s data into Custom Post TypeI have many terms on wp core tag that I want to copy and paste to a new cpt. The structure will be similar, I just want a new term on cpt (with the same title as the copied tag) for each tag.
Forum: Plugins
In reply to: [Admin Columns] The column could not be loaded because of an unknown errorNever mind, it was the cache plugin… always his fault… just disable caching for administrators
- This reply was modified 3 years, 10 months ago by elfigos.