In implementing my attachments indexing (as an additional module) I wound up having to do a combined key for nid--fid, however the default schema.xml provided with this module defines the nid field as an integer and that is incompatible. I simply changed it to string and all works well whether all numbers or numbers and characters. Seeing as it does not hurt and it provides additional flexibility, can we change the nid field to be a string, or if you feel that might pollute the meaning of nid, can we change the unique id field from the name nid to just id or something like that and then make that unique id field a string?

Comments

JacobSingh’s picture

I really like this idea... but I'm not sure how it could be implemented nicely.

What I'm concerned about is searchable content which are not nodes. Or searching from 3rd part sites which don't even use drupal. There is a lot of value here, and the current module would have a tough time with this...

Especially as we get into things like access control.

Did you have any problems clicking on the search results? Did everything work just fine?

Best,
Jacob

robertdouglass’s picture

I don't want to change nid to be a string. It is an integer in Drupal and it should stay an integer. We can add a "q" field, or a "path" field that is a string.

febbraro’s picture

Status: Active » Fixed

Looks like the proper solution as recommended by robertDouglass has been implemented as the "url" field. I think we can close this.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.