1

I've created searchable .net assembly connector, which reads text file (using this post). All works fine, content inside file was indexed and appears in search results.

I want to hide some rows from search results. In crawl log url to bdc entity looks like follows:

bdc3://flatfilelobsystem_flatfilelobsysteminstance/Default/00000000%2D0000%2D0000%2D0000%2D000000000000/3314/FlatFileLOBSystemInstance/3341?s_id=SBAAAAA==MwA=&s_ce=048u0h3o40800080g10200048u10003v55

I know that is possible to exclude some urls from crawling by specifying path (for example http://mysite/*) through crawl rules. I've added crawl rule with above url (with checked Exclude complex URLs (URLs that contain question marks - ?)), but after full crawl my entity doesn't excluded and still appears in search results. I've tried also this url (%2D decoded):

bdc3://flatfilelobsystem_flatfilelobsysteminstance/Default/00000000-0000-0000-0000-000000000000/3314/FlatFileLOBSystemInstance/3341?s_id=SBAAAAA==MwA=&s_ce=048u0h3o40800080g10200048u10003v55

with no luck.

Another part that I've tried - I created bcs model using SPD (that displays data from Customer table from AdventureWorks db), created profile page, next added model to content sources and perform full crawl. All fine, data appear in search results, profile page link work as expected.
Example of profile page link:

http://sp2010:80/sites/BDCProfile/_bdc/http___sp2010_sites_test/Customer_2.aspx?CustomerID=30118

I've also tried exclude this item using crawl rules and above url, but after full crawl item still appears in results (and no deletes in crawl log)...

So, the question is it possible to exclude bdc entity through crawl rules?

0

1 Answer 1

1

Figured it out. This rule not working:

bdc3://flatfilelobsystem_flatfilelobsysteminstance/Default/00000000-0000-0000-0000-000000000000/3314/FlatFileLOBSystemInstance/3341?s_id=SBAAAAA==MwA=&s_ce=048u0h3o40800080g10200048u10003v55

So, you have to create profile page for your external content type. And exclusion rule works:

http://sp2010:80/sites/BDCProfile/_bdc/http___sp2010_sites_test/Customer_2.aspx?CustomerID=30118

In my first attempt I missed port (80, default, but it is required), after providing port and making full crawl my item was excluded.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.