When indexing comments with apachesolr_commentsearch you are not able to filter for comments that are entered for a given node type. This could be helpful when displayling forum posts and their comments but not comments for other node types.

As far as I can see, this is currently not possible because the node type is not saved while indexing the comments.

Comments

McGo’s picture

StatusFileSize
new889 bytes

I created a very simple path that indexes the node type.

McGo’s picture

Status: Needs review » Needs work

Hm. this obviously can't work because of the schema file. What about storing the node type in the field "type"? Right now the information about the data in the index being a comment ist stored twice: in the entity field and in the type field...

McGo’s picture

StatusFileSize
new891 bytes

Regarding the deliviered schema file, I rewrote the patch to use the single string field ss_nodetype. This is not the best solution, using type would be better but would possibly result in some more work?!?

pwolanin’s picture

Status: Needs work » Closed (won't fix)

unsupported branch