Yes, there are filter options available in Kindle X-ray. I’ll tell you how you can categorize your search using this
Go to the book you are reading or want to read, then tap on the top of the screen. You will get a reading toolbar, now tap the X-Ray.
Now is the filtering part:
You can filter the book according to its section: tap on Page or Chapter or Book.
You can filter the book according to the topics available: tap on People or Terms.
When your filter appears, it appears as a bar. The bars indicates locations of the character or terms in the page, chapter, or book.
The list of topics in a particular Page, in the Chapter, or in the Book can be viewed by tapping on it.