First. Great module.

When i search for a taxonomy term (i only indexed taxonomy terms) the sugeestions show numbers in the suggestions (like 1000, 2000). Actually the numbers are part of the Node Title (nodes are namen foo_bar_1_1_1002. Any possibilities to exclude the title?

Comments

janusman’s picture

The module aims for simplicity and most-probable use cases; the fact is that if ApacheSolr Search can find it, then Autocomplete will too =)

Currently AS Autocomplete uses the "spell" field (and that is hardcoded); I see you have two options:

1) Hack the module to use a different, existing, single field to use for auocomplete. Say, "body".
2) Hack the module as above AND create a new field on your Solr service (in schema.xml) that copies over values from the fields you would like to include for the field. You would need to reindex too...

The thing is, querying against multiple fields (where you have not modified schema.xml as in (2)) would require multiple requests to populate the autocomplete--- which might be OK if you're not worried about overloading your Solr service =)

So... patches and ideas welcome, will leave the issue open for those. If you have any questions regarding how to do the above, just ask.

janusman’s picture

Category: bug » feature

Also, changing over from "bug report" because finding strings in node titles is not =)

marcoka’s picture

i´ll think about that and post if i have some algos/suggestions

janusman’s picture

Status: Active » Postponed (maintainer needs more info)

I forgot to mention, that words in stopwords.txt (in you Solr configuration) are removed from the suggestions. (Maybe not exactly what you want but a possible workaround).

Possibly related issue: #1062818: APIfy ApacheSolr Autocomplete to tackle more use cases