User login

Index and search specified fields for nodereference autocomplete

Exclude certain fields from Drupal search.

Agaric and Science Collaboration's real need for this is for AJAX autocompletion, the sort of function used to autocomplete taxonomy, userreference, and nodereferrence fields. It would be great not to have to create a custom indexing system each time you want autocomplete to act on certain fields.

Currently we're doing autocomplete by keywords on multiple fields for the Biblio module, which isn't using CCK yet, so this is very much for-future-reference from Agaric's perspective.

What's out there for restricting searching to certain fields? There's a module for that.

This module (Drupal 5) makes it possible:
http://drupal.org/project/search_config

And there are patches reported to work in Drupal 6: Port Drupal 6 version of Search Config

Reportback to these threads

Search only certain CCK fields (not all). How?
http://drupal.org/node/206122

Exclude certain CCK fields from Search
http://drupal.org/node/175762

Resolution

Searched words: 
drupal search sub-indexes drupal search only certain fields noderefference

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.