cancel
Showing results for 
Search instead for 
Did you mean: 

Exclude documents from indexing

Former Member
0 Kudos

Hello,

i want to exclude documents from indexing. (For example documents with the ending *.sav)

In the file TrexValidMimeTypes.ini there is no entry for *.sav files. So i cannot exclude this files there.

I read that i could exclude this files by using an Repository Filter.

But how does this work?

Has anyone another idea?

Kind regards

Sven

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sven,

Instead of a "Repository Filter" how about a "Resource Filter"

It should be possible to exclude documents from indexing by using a "Scope Resource Filter" assigned to the crawler this index uses.

In the Access Path Mode set it to 'exclude'

Then, In the Access Path Patterns just put in *.sav

Then create a new crawler parameter and assign the scope filter.

I have not tried this with a CM or FS Repository, it does work with Web Repositories though.

Regards,

Graham.

Former Member
0 Kudos

Hi Graham,

thank you for that hint, it sounds good. I will try it with the next reindex.

Regards

Sven

Former Member
0 Kudos

Hi Graham,

it works. But I had to use a <b>Result</b> Resource Filter with the following configurations:

Access Path Mode: 'exclude'

Access Path Patterns: *.sav

Thank you very much.

regards

Sven

Answers (2)

Answers (2)

0 Kudos

Hi,

Check this to know the File Formats Supported by TREX for indexing:

http://help.sap.com/saphelp_nw2004s/helpdata/en/55/cb634114b78047e10000000a1550b0/frameset.htm

So your file extension *.sav is not supported and thus should not be indexed.

If your documents is still indexed, then check if this solves:

https://forums.sdn.sap.com/thread.jspa?threadID=17448

Check the namespace filter where you can filter away the *.sav files for trex service_user:

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2556

Greetings,

Praveen Gudapati

[Points are welcome for helpful answers]

Former Member
0 Kudos

Hello Carsten, hello Praveen,

i see, it is not as easy as i thought. I think i have to develop a little bit.

Thank you for the fast answer.

Regards

Sven

carsten_buechert
Contributor
0 Kudos

Hi Sven,

there should be a possibility to add mime types depending on the file ending.

See "Content Management -> Global Services -> MIME Handler Service".

If this does not help, write your own Repository Filter that does not return *.sav-files to the service_user used by TREX.

Or try juggling with access rights for the user used by TREX.

Greetings,

Carsten

P.S.: Come back for more help if you need some.