Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › woocommerce results – sku sort
- This topic has 22 replies, 2 voices, and was last updated 9 years, 2 months ago by
stavroch.
-
AuthorPosts
-
March 16, 2017 at 10:21 am #12344
stavroch
ParticipantThank you for this.
I didn’t change anything from the back end and in front end i can’t see any product when I search for 101-0100
Why?
March 16, 2017 at 10:40 am #12346Ernest Marcinko
KeymasterHi,
Because there are no products starting with SKU ‘101-0100’, and there is no word in the text starting or ending with ‘101-0100’, in any of the products.
I see you want partial matching within text word centers, so I have turned off the index table engine. This will however yield less relevant results.
March 16, 2017 at 10:49 am #12347stavroch
ParticipantOk now I search for 01-101-0100 which start sku product.
Again that product is not displayed in the result page in front end first.
March 16, 2017 at 10:58 am #12348Ernest Marcinko
KeymasterOnce again, because you wanted ‘_sku’ sorting, with partial matches within the text, and the partial matches with the alphabetically preceeding ‘_sku’-s preceed that product.
It’s simply not possible to have the target product as first, when the primary sorting is set by ‘_sku’ , when the partial match ‘_sku’ are alphabetically preceed the target product – the target is simply pushed to the back, beyond the limit, because of the primary sorting by ‘_sku’.
March 16, 2017 at 11:31 am #12351stavroch
Participantsorry again.
ok i see what you mean.
Why when I search for 01-101-0100-0 displayed in 4th page? and in Greek page is not displayed?
Is the same reason as you describe?
March 16, 2017 at 2:47 pm #12356stavroch
ParticipantSo the result page is combination of sku and title name. right?
ex.
101-11111 – Aproduct…
101-0100 – Bproduct…so when I search for 101-0100 it will be displayed with the above order?
March 17, 2017 at 12:14 pm #12368Ernest Marcinko
KeymasterHi,
The results page layout, and how the name is displayed does not affect the sorting, it does no effect.
If the primary sorting is set by ‘_sku’, it means that for example if you type in ‘101-0100’, then no matter where the match was, it will be ordered by ‘_sku’: http://i.imgur.com/ussuvon.png
(this is same on the results page, it’s just an example)The ordering is correct as configured (_sku ascending):
01-044-5800-0
01-044-5801-0
01-044-5804-0
01-044-5814-0
…
01-101-0100-0The ordering is applied after the search, and because ‘101-0100’ matches other products in the product content, it displays those as well, ordered by their SKU.
March 17, 2017 at 2:49 pm #12373stavroch
Participantok thank you.
-
AuthorPosts
- You must be logged in to reply to this topic.