Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Different results according to language
- This topic has 14 replies, 2 voices, and was last updated 3 years, 9 months ago by
Ernest Marcinko.
-
AuthorPosts
-
June 21, 2022 at 11:57 am #38120
jjuanola
ParticipantHi!!
Search icon placed on main menu.
The results in English language and in Japanese language look different.Try with
t470
How can we make them look the same?
Do we have to index the database once from each language?
I need urgent help please!Thanx in advance
PD: Be careful! We’ve modified the files horizontal.php and vertical.php from Results folder to pick the image products from our CDN.
Thanx!June 21, 2022 at 3:59 pm #38124Ernest Marcinko
KeymasterHi,
I tried a few phrases, but the results layout looked the same to me. In both cases were vertical, and displayed in two colums.
English: https://i.imgur.com/sYyGOXd.png
Japanese: https://i.imgur.com/T1UfMDX.png
The layout seems to be the same, only the results are different.June 21, 2022 at 4:30 pm #38130jjuanola
ParticipantHi!
We need the results in Japanese organized as they appear in the English language.
The categories are the same, translated.Thanx!!!
June 22, 2022 at 3:06 pm #38143Ernest Marcinko
KeymasterOh okay – in that case the categories are actually not the same. Some translation methods create new category objects, and new post type object. If you selected the category groups manually, then that explains the issue – those categories (as objects) actually do not exist on the japanese version.
The best way to get by this I believe would be using 2 search instances. Try configuring the first on the english, the other on the japanese back-end. If the back-end is changed to japanese, hopefully the translated categories will show up, then allowing the grouping by those categories.
August 1, 2022 at 9:27 am #38628jjuanola
ParticipantHello!!
Now the categories are the same in English and Japanese and the results still look sorted differently.
For example, search for C245 or C245E.
The indexing tables have been created in both En and JA.Does the search engine search for a string within the product? Can you find more results?
I need an answer urgently please.
Thank you very much in advance.
Jordi
August 1, 2022 at 4:14 pm #38640Ernest Marcinko
KeymasterThe plugin looks within the product text. The order can be different, because of the difference of the text in both languages. In once language it may match more and different results as in the other language.
August 1, 2022 at 4:24 pm #38642jjuanola
ParticipantHi Ernest.
Our clients need the same results in each language.
Please, can you talke a look inside the products and its translations to try to find a way to get it?
I’ts a lot important for us. The customer will not pay us until it works π
Thanx very much.
August 3, 2022 at 2:19 pm #38658Ernest Marcinko
KeymasterWell, I don’t think this is easily possible without major changes to the plugin code I’m afraid. I would suggest a code edit if this was simple, but it is much more complicated than that.
August 4, 2022 at 10:00 am #38678jjuanola
ParticipantHi!
1. Is possible that the results may be diffrent due the text is inside html code??
2. Can the results be different if we separate string chains? For example C245<space>γ«γΌγγͺγγΈγ·γͺ instead of C245γ«γΌγγͺγγΈγ·γͺ ?Thank you!
August 4, 2022 at 11:21 am #38679jjuanola
ParticipantHi again, sorry to bother you but we’ve to solve it π
Old questions:
1. Is possible that the results may be diffrent due the text is inside html code??
2. Can the results be different if we separate string chains? For example C245<space>γ«γΌγγͺγγΈγ·γͺ instead of C245γ«γΌγγͺγγΈNew questions:
3. We realized that in Japanese the WPML compatibility doesn’t work propperly:
– The results are ok in english (not in Japanese) when activated and wrong in both cases when deactivated.
– The translation of categories are ok in the website.4. By other hand, we realized that the settings are the same for both languages, when you change an option in english, it affects to Japanese, isnt’it?
Thank you very much!
August 8, 2022 at 12:21 pm #38751Ernest Marcinko
KeymasterHi,
1. Can be – but if you are using the index table engine, then it is very unlikely, as the HTML code is removed automatically.
2. Yes – that will affect how each keyword is stored.
3. Can you please tell what exactly is wrong with the results in that case?
4. Yes – it will affect both versions. If you want separate configuration, you can create separate search bars for each language.August 9, 2022 at 9:22 am #38773jjuanola
Participant3.
Yess, of course:If you search C245 (look at the reply #38679 images) you have different results depending of the language:
WPML ON
In Englich are correct -> Located inside Range category and all the other results are OK.
In Japanese are WRONG -> All products are shown in “other results”, nothing in Range category. The categories are well translated in WPML.WPML OFF
In Englich are WRONG -> ll products are shown in “other results”, nothing in Range category. The categories are well translated in WPML.
In Japanese are WRONG -> All products are shown in “other results”, nothing in Range category. The categories are well translated in WPML.If we solve this issue, may be all will be ok
Thanks in advance
August 11, 2022 at 9:06 am #38803Ernest Marcinko
KeymasterI am not entirely sure, but WPML may create new category objects for translations now, that would explain the issue.
I tried to log-in and check the configuration, but I can’t access the wp-admin area. Can you pelase check that?
August 12, 2022 at 8:46 am #38816jjuanola
ParticipantYou cannot access this content.
August 14, 2022 at 11:29 am #38863Ernest Marcinko
KeymasterThank you, that worked.
The problem is, that you have to choose the japanese categories as well for the grouping: https://i.imgur.com/iEeo5vm.png
That will solve the problem. -
AuthorPosts
- You must be logged in to reply to this topic.