IPXV_SearchCallback - skip some documents in folder search  SOLVED

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

IPXV_SearchCallback - skip some documents in folder search

Post by zarkogajic »

Hi Support,

I'm using my IPXV_SearchCallback implementation for the op.search operation started via SearchView pane

Is there a way to skip some documents by handling the OnNewEntry (OnStartPtr/OnStopPtr) when doing a folder (+subfolders) search?

Say I'm searching in \folder and it has two subfolders:
\folder\sub1
\folder\sub2

I need the search *not* to include (some) documents from "sub1" subfolder.

I've tried returning E_NOTIMPL (S_False, E_Fail, ...) in OnNewEntry when PXV_SearchPtrChunk_Document - but it does not work - document (and search results) is still added to the results list.

ps
I know how to "skip" documents when searching "in all open documents".

-žarko
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: IPXV_SearchCallback - skip some documents in folder search  SOLVED

Post by zarkogajic »

Figured out how to do it :)

Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

IPXV_SearchCallback - skip some documents in folder search

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply