The goal was to sort the elements by points based on the increase in type and plus if the element type: bike has an image. The result should be:
- Cars
- Boats
- Bicycles with a picture
- Bikes without image
This was my first search approach: type:"car"^10000 OR type:"boat"^5000 OR (type:"bike" AND image-type:[* TO *])^100 OR type:"bike"^5 (works great)
But I forgot the old data elements without the type field. It should be in the result set as follows:
- Cars
- Boats
- Bicycles with a picture
- Bikes without image
- All items are without type
So, I changed my request to -type:[* TO *] OR type:"car"^10000 OR type:"boat"^5000 OR (type:"bike" AND image-type:[* TO *])^100 OR type:"bike"^5 and received no results.
So, I found this thread and tried to change my request to -(type:[* TO *] OR -type:"car"^10000 OR -type:"boat"^5000 OR -(type:"bike" AND image-type:[* TO *])^100 OR -type:"bike"^5 ), as shown in this answer https://stackoverflow.com/a/168646/
But, unfortunately, all items have the same score: (
surfi
source share