I'm having problems with CCK node references to unpublished nodes being included in the Lucene index and appearing as facet items.

There's a similar issue on the Solr queue (#536990: Always index content as anonymous (so Solr can respect field-level permissions)) where it was determined that the only practicable solution was to perform node indexing as anonymous. A patch was committed to that effect.

I've tried the same solution with Lucene API and it works. Does anyone have any thoughts - e.g. why it might not apply to Lucene API?

CommentFileSizeAuthor
#2 luceneapi-921586.patch1.29 KBchaps2

Comments

cpliakas’s picture

Issue tags: +6.x-2.5

chaps2,

Great pick up by you. I think that it is something that should be added to Search Lucene API, so I am marking it for the 6.x-2.5 release. Would also love to see some patches if anyone wants to contribute to this thread.

Great work,
Chris

chaps2’s picture

StatusFileSize
new1.29 KB

Here's a very small patch based on the Solr patch:

cpliakas’s picture

Status: Active » Needs review

chaps2,

Looks good to me. Will test it as soon as I can. If someone else has time to test and reports back that it fixes the issue, I will commit.

Great contribution!
~Chris

cpliakas’s picture

Status: Needs review » Reviewed & tested by the community

Marking as RTBC.

cpliakas’s picture

Status: Reviewed & tested by the community » Closed (won't fix)