3rd Drupal question in a day.. guess what I'm doing!
OK, I've got the default Drupal search block, but I really need to find a way of restricting it to just searching one particular content type which is called "recipes" (guess what that one contains!)
Does anyone have any ideas on how I can restrict the search and then go about controlling the output display?
Thanks!
You can use the Search config module. If this module does not your work you should also look at this page: http://www.drupalmodules.com. Just type in "search" and you can find a few search plugins with descriptions.
I recommend the Finder module, which works well with CCK and filters and is straightforward to theme.
You could be interested in trying Faceted Search, which add a series of blocs to filter the results returned by the search module. There are many other modules which are related (see Projects related with Faceted Search).
Related
For my website I have a category which contains articles related to FAQ items. The standard search function searches the whole site and offers no personalization.
I need to search only in one specific category with a search module in Joomla , what would the easiest way to do that?
I have tried Smart Search, unchecking all other categories and indexing again. Still, results from other categories show up in the Smart Search module. Also I have seen the Filter option in the Smart Search module, but I haven't found out how that should work.
I am using Joomla 3. Any suggestions are appreciated!
It seems I have solved my question myself.
My solution was to add a filter at the Manage Smart Search page on the Search Filters tab, then choosing the category I wanted to search in.
Then, in the smart search module you choose that particular filter and you will only search in that particular category!
I'm trying to implement a search for my FAQs page. I'm using the modx extras FAQ Manager and SimpleSearch. SimpleSearch works quite well if you're searching modx resources, but the problem I've run into is how to search a database table for example the FAQ Manager table where the content is not tied to a resource. Is this possible?
I've noticed that SimpleSearch has a &customPackages property, but I can't seem to get it to work. If someone could show me an example of how to use simple search in conjunction with FAQ Manager, I would be most appreciative.
You can search in a custom package through AdvSearch with a custom queryhook: http://www.revo.wangba.fr/custom-package-dvd-shop/
and the corresponding snippet since the link doesn't seem to work: http://www.revo.wangba.fr/assets/files/advsearch/queryhook/dvdqhook.snippet.txt
I believe you can use the advanced search package to search database tables: http://rtfm.modx.com/extras/revo/advsearch
I would like to use the full Lucene query syntax on an Orchard CMS based Website.
Currently, after enabling the indexing and search on Orchard, I can search on the website according to the fields I selected on the Orchard search administration page,
but I cannot perform one search on a particular field only (without changing the behavior on the entire search)
I cannot use fuzzy search...
From the logs, I can see that Orchard take care of that part (providing Lucene a good query syntax), but I would like to do it on my own.
For example, when searching "wel" on the website, Orchard will send to Lucene this query : title:wel* body:wel* (if I have the title and body fields activated on the search).
I did see some blogs that talk about coding some features to customize search, but I would like to be sure I'm not missing something before switching to developer mode :)
There are so many scenarios that can be done with search that there is no way to provide such coverage out of the box, which is why the API is very simple to use if you need custom searching capabilities.
You should copy-paste the controller from the search module and use the Parse() method of the ISearchBuilder with the escape parameter to false. This will parse a pure lucene query. You can also use the WithField("body", "value") to do simpler field search.
I don't believe anyone has released any modules that provide additional search functionality, because if you need it, it is so simple to develop ^_^ So yes, you will have to go dev mode to do custom field search
Drupal's core search module, only searches for keywords, e.g. "sandwich". Can I make it search with a substring e.g. "sandw" and return my sandwich-results?
Maybe there is a plugin that does that?
The most direct module for it is probably Fuzzy Search. I have not tried it. If you have more advanced search needs on a small to medium sized site, Search Lucene API is a fine solution. For a larger site, or truly advanced needs, Solr is the premiere solution.
Recently I made a patch for Drupal's core search module to provide it with partial search (aka n-gram searches) ability. This is tested against Drupal 6.15 & 6.16 releases. You might want to read about patching.
On the other hand you can make use of Apache Solr Search Integration, Search Lucene API modules or other 3rd-party search solutions which takes more time to implement.
PorterStemmer module has its own different story in which you might be interested, too.
Yes. Fuzzy Search (module) does it. https://drupal.org/project/fuzzysearch
Drupal Finder does it somehow, namely: it has an autosuggest feature, so if You start typich sand it should suggest You a node containing sandwich.
What I need is Search Scaffolding but in its absence I was wondering if you could point me in the direction of any really simple examples for adding search to a domain.
I can't use the searchable plugin as it conflicts with the AppEngine plugin (Unless someone has got this to work?). I just need to be able to filter the scaffold list to contain only the results which match the query. I don't need a pure text box solution, I imagine it too look exactly like the 'create' form except when you submit you get a list of matching objects.
I hope this makes sense, thanks in advance!
Gav
Google App Engine - Full Text Search