Download: | Search Unleashed |
---|---|
Version: | 1.0.6 |
Supports: | WordPress 2.9.2 – 3.0 |
Other: | WordPress.org | SVN |
Support: | This plugin is no longer actively maintained |
Search Unleashed extends the standard WordPress search with customisable search engines, including MySQL’s full text and Zend’s Lucene, as well as word highlighting and the ability to search across posts, pages, comments, titles, URLs, and meta-data.
The plugin also ensures that a search is performed against what a web browser sees, not what is contained within the database. For example, a lot of plugins will insert data into posts using shortcodes. Because this data is inserted run-time it is not included in any search results – the data is invisible. Search Unleashed performs searches across all data, including that added by plugins.
Some features of this plugin are:
- Customisable search engines (default WordPress, indexed WordPress, MySQL fulltext, Zend Lucene)
- Optional wildcards and logical search operations
- Optional prioritisation of fields – you decide what is more important
- Search posts, pages, comments, titles, URLs, tags, and meta-data (all configurable)
- Search data after it has been processed by plugins, not before
- Search highlighting of all searches, including titles and comments
- Search highlighting of incoming searches from external search engines (such as Google)
- Search results show contextual search information, not just a post excerpt
- Record search phrases and display in a log
- Exclude specific posts and pages from results
- No changes required to your theme
- No changes made to standard WordPress database tables
- Advanced search widget (WP 2.8+)
Search Unleashed is available in the following languages (included in the plugin):
- English
- Deutsch, thanks to Frank Bueltge, Gerhard Lehnhoff, and Andre
- Swedish, thanks to Olle Hellgren
- Russian, thanks to lecactus
- Italiano, thanks to Dario
- Dutch, thanks to Evert Jan van Ramselaar
- French, thanks to Vincent Granger
- Polish, thanks to Krzysztof Kowalik
- Spanish, thanks to Ivan Garcia
- Turkish, thanks to Mehmet Karaca
- Japanese, thanks to Hiroaki Miyashita
- Simplified Chinese, thanks to Yunfang Shang
- Brazilian Portuguese, thanks to Joao Miguel Aliano
- Danish, thanks to Georg S. Adamsen
- Czech, thanks Pavel Soukenik
- Slovenian, thanks to Rok
- Bahasa Indonesion, thanks to Dhany
Installation
Full installation details can be found in How to Install a WordPress Plugin.
How it works
Search Unleashed works by maintaining a search index that includes all processed information from your site. This is unlike the default WordPress search and most other search plugins, which directly use post data. Although maintaining a separate index is initially more work, the benefits are that a search is faster (it is only looking through relevant information) and can be made on data after processing by plugins. This last point is a key feature of Search Unleashed, and an example is given below.
A lot of plugins provide the ability to insert or modify data dynamically. This is typically achieved by inserting special shortcodes into posts. For example, Sniplets is a plugin to insert data into a post:
[sniplet some processed data]
This is fine when displaying the page, but when it comes to searching, the default search only sees the shortcode and not the end result. This means that any dynamically added data is invisible to the search, making the search itself somewhat less useful.
Search Unleashed indexes data after it has been processed by plugins, making all dynamically modified data visible to searches. The index is maintained separately to core WordPress data, so there is no worry of any corruption or incompatibilities caused by future upgrades.
Configuring the plugin
So you’ve installed the plugin, tried a search, and nothing happened. What’s wrong? First you need to configure the plugin. Don’t worry, this stage is painless and only needs be done once.
Configuration of the plugin takes place from the Search Unleashed administration page:
There are several sub-pages, each accessible from the menu at the top of the page:
Modules
Modules determine what data Search Unleashed indexes. For example, you can configure Search Unleashed to index post content, title, and URL.
Modules are enabled or disabled by checking the box on the left:
Modules can be configured by clicking the edit icon on the right:
Note that although a priority is provided in each module, only the Lucene and MySQL fulltext search engines use this. Details on prioritisation can be found in the Search Engine section.
The following modules are provided:
- Post content
- Post excerpt
- Post category
- Post author
- Post meta-data
- Post slug (URL)
- Post title
- Tags
- Comment author URL
- Comment content
- Comment author
Note that ‘post’ includes pages.
Options
The options page is split into several sections.
General Options
- Log expiry – Configure how many days worth of log data to retain. Enter 0 for no expiry, or -1 for no logs
- Replace category archive – Replace the category archive with a search based on the category name. That is, replace the ‘WordPress’ category archive with search results for ‘WordPress’
- Replace tag archive – As above, but replaces a tag archive page with search results
Spider Options
- Search Engine – Select which search engine to use (see Search Engines below)
- Pages to exclude – Post/page IDs that will not be included in search results
- Categories to exclude – Category IDs where posts in that category will not be include in search results
- Include – Specify whether to include pages, posts, password-protected posts, private posts, or draft posts
Theme Options
- Force content display – Some themes, such as the ‘default’ theme, do not show any post content when displaying search results. This option tries to force the display of post content so that it can be highlighted.
- Search results page title – Change the title of the search results page to reflect the search conditions (i.e. includes the search phrase and number of result pages in the page title)
- Highlight searches – Highlight search results
- Highlight incoming searches – Incoming searches are from external search pages such as Google. Note that this may interfere with WP Cache and WP Super Cache
- Theme title position – Modify this if your title is not highlighted correctly
Search Style
- Include highlight CSS – Include the CSS for highlighting search results. Disabling this will require you to use your own CSS
- Highlight colour – Select CSS colour values for highlighted phrases
Filters
Search Unleashed allows you to perform searches across the results of all plugins. Sometimes you may have a plugin that adds data that you do not want included in your search results. To achieve this you can use the filters page to disable WordPress filters when data is being indexed. This does not affect the plugin at any other time.
The list of filters will vary according to the theme and plugins you have installed:
Note that this is an advanced feature – do not use unless you understand the effects.
Search Engines
A search engine provides search functionality. Search Unleashed has four search engines, each of which has advantages and disadvantages:
- Default WordPress
- Indexed WordPress
- MySQL Fulltext
- Lucene
A comparison of the engines is shown below:
Needs Indexing | Include Plugins | Logical Search | Prioritization | Medium | |
---|---|---|---|---|---|
Default WordPress | No | — | — | — | DB |
Indexed WordPress | Yes | Yes | — | — | DB |
MySQL Fulltext | Yes | Yes | Yes | Yes | DB |
Lucene | Yes | Yes | Yes | Yes | File |
You should select a search engine that provides features appropriate to your blog. The Lucene engine requires write access to your wp-content/cache
directory and is file-based, whereas all other engines work directly from your database. All search engines will allow highlighting of search phrases.
Prioritization allows you to assign more weight to certain modules, which in turn affects the order of results – posts with more weight appear higher in results, posts with less weight appear later.
For example, you may decide that the title and URL should be more important than meta-data. In this instance you could change the priority of the title and URL module to have a higher priority than the standard 1.0. Setting a priority less than 1.0 will give it less weight.
Indexing
Depending on your choice of search engine you may need to index your database. This process runs through all your posts and stores the plugin-processed data in a separate search index. This process only needs to be performed once. Future modifications to posts will be automatically included in the index.
The default WordPress engine requires no indexing.
Indexing consists of visiting the search index page and pressing re-index button. Your database will then be indexed and a progress bar will show the state of this operation.
Search Log
Search Unleashed can be configured to record a log of searched phrases. This can be viewed from the log sub menu.
Logical Searching
Search Unleashed tries to be as simple as possible for users performing searches and does not present a complicated set of search options. Instead a search is performed across all indexed data, and can be made using a similar syntax to what is used in popular search engines like Google or Yahoo.
Wildcards are supported through a *
, but only when ‘full text’ searching is enabled:
head*
This will find all words that start with head
.
Words can marked as required or not required using +
and -
:
+headspace - the word 'headspace' must exist
-headspace - the word 'headspace' must not exist
An exact phrase can be included by wrapping the phrase in quotes:
'exact search phrase'
Logical inclusion also works:
headspace AND plugin = +headspace +plugin
Here both headspace
and plugin
must exist.
Unlike some other plugins, Search Unleashed allows you to search for words smaller than four characters in length.
Incoming Results Template
Incoming results are highlighted using a default template. It is possible to change this template by performing the following steps:
- Create a directory
view/search-unleashed
inside your theme - Copy the file
wp-content/plugins/search-unleashed/view/search-unleashed/incoming_local.php
to the newly created directory in your theme - Modify the copied file as appropriate
Note that the template file is separate from the plugin so you can update the plugin without needing to update the template.
Support & Bugs
This plugin is no longer actively maintained
Todd & Matt, the problem sounds the same, and unfortunately I still cannot reproduce it. I’ve tried searching for many different words and each is found perfectly. For example, doing a search on this site for ‘MgB2’ returns this comment and your own!
I’m not denying that the problem doesn’t exist, but it seems to be outside of the plugin (some environment issue – it works in mine and some others, but not in yours). If one of you has a test site I can get access to and experiment with then I should be able to track down the problem.
Matthew, I’ve added an option to search in protected posts (although I’m not sure why you’d want to do this)
Sekundek, what is the error?
When I save a post, here is what I get
WordPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘VALUE (‘370′,NULL,’kostanjev piknik’)’ at line 1]
INSERT INTO wp_search (post_id,content,priority) VALUE (‘370′,NULL,’kostanjev piknik’)
There should be no problem with that, Sekundek, it works fine on my site. What version of MySQL are you using?
That’s brilliant. Thanks John!
I’m using the Nice Search Plugin so when the search page is shown everything displays in the correct manner. Example Search Hotel Watch. But when you click a link to go to a post from the search results the term is pushed together. So Hotel Watch turns into HotelWatch. The problem of course is this Nice Search plugin. From it’s plugin description:
Redirects ?s=query searches to /search/query, and converts %20 to +
Is there any way to make your great plugin work with the Nice Search plugin?
I think it’s version 4.0.x
I’m getting this error… using the last version of the plugin and worpdress…
WordPress database error: [Unknown column ‘priority’ in ‘field list’]
SELECT DISTINCT SQL_CALC_FOUND_ROWS wp_posts.*, ((0.6 * MATCH(content) AGAINST (‘TESTE’ IN BOOLEAN MODE)) + (1.3 * MATCH(priority) AGAINST (‘TESTE’ IN BOOLEAN MODE))) AS score, COUNT(post_id) AS multiple,MAX(wp_search.comment_id) AS comment_id FROM wp_search,wp_posts WHERE (MATCH(content,priority) AGAINST (‘TESTE’ IN BOOLEAN MODE)) AND wp_search.post_id=wp_posts.ID AND wp_posts.post_status=’publish’ AND post_password = ” AND post_date
Vdias, did you deactivate and re-activate the plugin after upgrading?
Turk, done.
Sekundek, the only thing I can suggest is that you deactivate and reactivate the plugin. The error would seem to suggest that your version of MySQL (a pretty old version) does not support the functions required.
using version 0.1.12 I get this error everytime I reindex:
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘AND meta_key=’forumlink” at line 1]
SELECT * FROM wp_postmeta WHERE post_id= AND meta_key=’forumlink’;
any hints what this error is trying to tell me? it seems the reindexing finishes successfully.
also it seems the criterias I entered un search unleasheds option page are ignore.
as well as searching for masini de epoca, masini +de +epoca or ‘masini de epoca’ yields the same results.
highlighting does also not occur.
you can check it out here: http://www.rondul.eu but as the site isn’t yet finished you need a user:alakhnor pass:alakhnor to access it.
This can stay here as public information as it is just a simple subscriber account.
as far as I remember, the search is a simple included search widget, nothing has been modified.
also it seems the css is not loaded on the searchresults page
Thanks John. Now is there anyway to manually place the search results box?
problem resolved… Thankz john!
[…] Search Unleashed plugin provides highlighted results within your website to display to your visitors what search […]
Turk, what do you mean by manually place the search box?
Ovidiu, the CSS seems to load on that site when I view a page. As far as I can tell that error message is not caused by Search Unleashed itself, but by another plugin (something to do with forumlink?) that Search Unleashed is calling. If you know what the plugin is I can look at why the error is being reported. Search criteria are used to weight the search results, so it is very possible that you may get exactly the same results if there are not enough search results for the criteria to make any difference.
This Local Search Results box. I don’t like where it’s placed in my theme. Manual control of it’s placement would be nice.
Here is another bug/feature request. When a search returns a result that also is a comment authors name, it tries to highlight the name. It renders the html as text in my theme. For example this search and then the first item in the search results. Example image here.
I’ve figured out my last comment’s problem. Sort of. I use this code for comment author names:
I’m retarded for opening links in a new tab (window) and it’s sticking your code at in between the link. Is it possible to have this option a toggle?
thx John, in the meanwhile I had found the plugin search unleashed is conflicting with. Its simple forum from: http://www.stuff.yellowswordfish.com/simple-forum/
please keep in mind I get the same errors when posting (and simple forum and your plugin are activated) if I deactivate your plugin, all works well.
how can i search for "sun" without getting "sunflower" returned as one of the hits?
New problem. I had post title turned off in the modules, decided to turn it on and now I get this. I’ve tried setting the Theme title position option to it’s various settings. 0 and 1 gets that stuff up top. Setting it at 2 I get the code mangled on the first result. Highlighting is normal there on. The default template does not do this.
This is the bit of code I use for my title.
I did cut and paste the code used in the default template and it does the same thing.
My previous comment is gone. I’m having problems when I have the post title module I get these results when searching for a word that appears in the title. Example 1 and Example 2. It has to be something with my theme. I did try using the specific code that is in the default template but I get the same results. Any ideas?
hy, nice Plugin and now with german language file. One problem, it is not possibility, to search syntax with german strings (ü, ö, ä …). Do you have a idea for the code?
Any chance of providing a backwards compatible version of Search Unleashed for MySQL 4.0 users?
I don’t know why, but it is not possible to click on the buttons to "Re-indicate posts and comments" It’s just doing nothing if I click on it. I’m using WP 2.2.2 and work with Mac OS X 10.4.10 with Safari 3.0.3 and Firefox 2.0.0.7
And of course I’m using your latest release: 0.1.13
Frank, yes, the new version uses a UTF-8 database, not a Latin one! You must deactivate and reactivate the plugin.
Turk, I’m not sure what I’m looking at in your pictures. The theme code setting is basically to cater for themes that call the_title before displaying the title. In the code you gave, the_title is inserted in the alt attribute, so the setting should be 1.
Sepp, do you have JavaScript enabled? The buttons work in all browsers I’ve tested, including Safari
Joe, it’s not something I can implement in PHP as it is dependent on MySQL. According to the MySQL documentation I can see no reason why there should be a problem, but the plugin doesn’t complain on anyone else’s site so this is the only thing I can come up with.
JavaScript is always turned on. The "Save" Button at the setting page of your plugin works fine. It’s just the Re-indicate posts and comments Buttons
I commented out the highlighting for titles so it doesn’t do it now. But in those pictures the html is being displayed as text. In the first pic I linked the "Back In Camelot" />" at the top. That should not be there. In the second pic you can see how it’s doing the same thing only at where the title is. The bit were it say "Back In Camelot">Back In" again not supposed to be like that. How about an option (not hacking) to turn off title highlighting?
hello john,
could you maybe have a look why your plugin conflicts with simple forum? The author is very friendly and open to suggestions. I also posted on his forum, you have the link below.
Hello John,
i testes under version 0.1.14 and it is not possibility to use unicode, the URL of search is example: ?s=%C3%BCber for "über". Do you have a idea?
Frank, if you installed the new version, de-activated the plugin, re-activated the plugin, and then re-indexed the search database you will be able to search for unicode characters (including über)
Sepp, can you send me the HTML from the re-index page?
Turk, there is an option to disable title highlighting. If you send me the search.php file from your theme I can have a look and try to make the plugin cope with it.
Ovidiu, I’ve installed the plugin and I don’t get any errors when I reindex or save a post. Maybe you have some additional software or special configuration that is not part of the default?
David, in that particular instance you can’t. The word ‘sun’ falls under MySQL’s minimum word threshold. You can use searches like ‘+apple -macintosh’ to find all posts with the word apple, but not macintosh. In this instance the word ‘apple’ is over the minimum word threshold, so MySQL pays attention to it. This threshold is annoying, but a caveat of MySQL. The plugin works around this in normal searches (i.e. you can search for ‘sun’ on it’s own), but you can’t combine this with a logical operation..
Hy John,
thx for your help. Now worls correctly. I have a source-problem in the search.php. I view the content with a own function and this is not possibility with your plugin.
With best regards Frank
* I write the new german language-file and send this via mail.
Hello
nice plugin but there is a small problem, if You will type more then 4 letters but less then whole word it will not return result. For example it will return result for searching phrase "sear" ,but it will not return result for phrase "searc" The question is why ?
Frank, you can use apply_filters (‘the_content’, $post->post_content) to get the plugin to highlight terms.
Tom, MySQL interprets any sequence of characters as a word. To get substrings to match you need to use the wildcard: sear*
hmm so if it is as you say, so it shouldn’t return result for phrase "sear" but it does.(ofcourse now word "sear" is pressent in mysql because i wrote it down in this post, but before it wasn’t) So it looks like to words up to 4 letters is automatically added wildcard * and to words longer then 4 letters not.
Isn’t it better solution to add at the code wildcard * to every search phrase ?
I am comparing at this moment your plugin with search-everything plugin. Search-everything is looking for a phrase* automatically.
Tom, it’s all about search relevance. The MySQL team has determined that the majority of searches are for whole words (and this is true – all of the incoming searches to this site are whole words), and very few people ever want to find something such as ‘sear’. MySQL takes this one step further by deciding that any phrase of 4 characters or less has no relevance at all. I don’t agree with this, and added a special search that forces small words to be matched using a simple text compare (hence why ‘sear’ matches)
Search Everything isn’t adding a wildcard because Search Everything doesn’t have the ability to do wildcard searches. Instead it uses a simple text compare search instead of the special MySQL ‘fulltext’ searching (which goes through a complicated algorithm to allow wildcards, negations, and proper relevance).
I can certainly add a feature to the plugin to force a wildcard search, or to use the simple search, but this may produce results that are less relevant. Remember that the key is not to return the most results, but to return a result that the user wants. In this case, MySQL have decided that word-based searches return the most relevant results. People who do want substrings can do so using a wildcard.
I’ve added an option to change the search mode from full text searching to simple pattern matching. I’ve also added a search log so that all searches (including incoming searches from search engines) are recorded. You will need to deactivate and reactivate the plugin for this to take effect
I am noticing that matching search results are not returned when the matching data resides in a table cell. Is there a fix for this, or could there be? Thanks.
Great plugin! I have one simple question: how to get the total number of results returned by search? I see you are using SQL_CALC_FOUND_ROWS but I can’t seem to find the "FOUND_ROWS()" query. Thanks!
Hi there. Just installed WP 2.3.1 and came across your plugin. It’s exactly what I’ve been looking for, however seem to have a few problems when installing. Getting this error on the admin page for search-unleashed: ‘
WordPress database error: [Table ‘wp_rc_v1.wp_search’ doesn’t exist]
SELECT COUNT(*) FROM wp_search
Any ideas what I may have done…?
I have this error, how to remove that when searching in my site
WordPress database error: [Table ‘livedown_livedownsql.wp_search_phrases’ doesn’t exist]
INSERT INTO wp_search_phrases (phrase,ip,searched_at) VALUES (‘thrice’,’3706158085′,NOW())
Cao, you need to update the plugin by deactivating and reactivating – see installation notes above.
Hamish, try deactivating and reactivating the plugin also.
Gordon, you can use the standard WordPress functions to see how many posts were found (for example, the WordPress variable
$wp_query->found_posts
will contain the number of posts).When using the plugin, each post in the search results page includes a ‘Tags: …" line below the content/excerpt. Is there any way to turn this off? My metadata already includes a list of tags.
Hi there. Great-looking plug-in, but I don’t think it’s working properly in 2.3.1 ……. each result in my list of results includes Page/Post Title and Excerpt, but only one displays a URL (and that is just text, no link).
Are you aware of any problems or is it more likely that I’ve done something wrong …
I’ve found a second strange behavior with Search Unleashed, it finds posts that as far as I can see don’t contain the search keywords. I’ve only done this once, but given SU’s erratic search performance, I imagine this too happens with some regularity.
My one example, on a search for "pigweed", 2 out of 17 results did not contain the keyword. I went to each of the article pages and doublechecked: no keyword. I can’t see anything unusual about the keyword or the posts.
My first problem, reported here earlier, is not finding articles which contained the keywords. This has been confirmed several times since. The searches find the missing results when I disable SU and use the WP native searh, and the Search Everything plugin returns the same results as the WP search.
I should stop using SU, but I keep it because of the highlighting or keywords in the results. I find this feature extremely useful, at least, for the type of content on my blog.
It’s unfortunate to have to complain about a free and overall really cool product (and I use your HeadSpace2 as well, and have recommended it). That said, I’ve found a new problem with Search Unleashed, that adds to the previous one, reported here. And I really think that it’s kind of…not good if even a few people unwittingly install this plugin and have incorrect results without even knowing it. I see others are having problems too, so perhaps publishing a KNOWN PROBLEMS on this page until they’re fixed would be helpful.
I’m willing to do what I can to help track down the problems, just lemme know!
Thanks!!
After upgrading from 2.2.2 to 2.3.1, I’m getting this error on search result pages:
WordPress database error: [Table ‘electro_wrdp1.wp_search_phrases’ doesn’t exist]
INSERT INTO wp_search_phrases (phrase,ip,searched_at) VALUES (‘matrix’,’1262885182′,NOW())
Other than this error, the results all work and the highlighting is present.
I tried reindexing the comments with no errors. I also reindexed the posts and got this:
Warning: main(../wp-config.php) [function.main]: failed to open stream: No such file or directory in /home/electro/public_html/wp-admin/install-helper.php on line 2
Fatal error: main() [function.require]: Failed opening required ‘../wp-config.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/electro/public_html/wp-admin/install-helper.php on line 2
Thank you for this great plugin!
I’m make Russian translation for this plugin
You can download it at http://lecactus.ru/download/search-unleashed-locale-ru_RU.zip (20kb)
and include it to distrib
got it, in the features you have "Search results show contextual search information, not just a post excerpt"; can you make that optional?
Lecactus, that’s great! I’ve included the files in the plugin and added a link to your site. Thanks
Marty, it should work fine in 2.3.1 – this site is using that version. A URL is only included if a search matches a URL. You will always get a link to the post from the post title, not from a matched URL. From your description everything seems to be working correctly.
Rob, did you deactivate and reactivate the plugin? Some changes were made to the database tables and you need to reactivate to have these applied. I don’t know what those other errors are, but hopefully they will disappear.
Matthew, the tags are not being displayed by Search Unleashed but by something else in your installation (either your theme or a plugin).
tbronson, Search Unleashed works very differently to Search Everything. SE just extends the default WordPress search, while SU replaces it to include output from plugins, and then applies a relevance matching algorithm to hopefully give better results. SU should also be faster as it is searching in one place, as opposed to SE which has to search in several places. This gives SU a lot of advantages, but it does put it at the mercy of plugins.
I don’t have a list of known problems because as far as I’m aware there are none. Several people have indeed reported a similar problem but as of yet I’ve not been able to reproduce it and no one has followed up on my request to investigate it further. I’ve attempted to replicate the search conditions in my own sites but the results are always correct and this leads me to believe that some plugin or combination of plugins is causing the erratic behaviour. Out of the 2000 or so people that have downloaded the plugin only a handful have reported any problems, so this would seem to bear out my assumption (although I will admit that most people probably would not notice incorrect results).
Search Unleashed does have an option to do standard searching, like Search Everything, so that may give you better results for now. If you can provide assistance in helping me track down the problem then I would be very willing to take you up on that offer. Specifically I’m looking for temporary admin access onto a site with incorrect search results. Get in touch with my via email if you’re willing!
Please add to search engine yandex.ru – russian search engine
code what need to add you can download at http://lecactus.ru/download/search_engine_yandex.zip
but i’m got a little problem with encoding:
if i go to link from search engine result and words what i search contents russian symbols, then i’m got "abra-kadabra in encoding cp1251" in "highlited search words"
this problem what yandex.ru used codepage windows-1251, but other search engines used utf-8 usually and blog used utf-8 too. this problem occured with yandex.ru only
can you help me?
sorry for my english 🙂
Hi John. I’m sure it’s SU that’s adding the tags – ‘contextual search information’ – because when I disable the plugin, the tags don’t appear anymore.
John, you were right. After deactivating/activating, the error’s gone. 🙂
Weirder and weirder. As I said, I’m sure it’s the plugin that’s adding this stuff to the excerpt. I’ve checked with just Search Unleashed (no other plugins) activated and deactivated. But I’ve just discovered that it’s not doing it all the time…
Take a look at the site: kesbathphysics.com (under construction!) Search for ‘space’ using the quick search in the top left; see that Tags line above the metadata? That doesn’t appear when I deactivate search unleashed. Now search for ‘solar’; where’s the tags line gone?!?
update: I’ve just worked out, if the search term is a tag, then it’ll display that tags line. If not, then it won’t. Also, the quick search is in the top right! And just to add: I’ve tested this in the default theme too.
Matthew, so everything seems to be working as it should?
What a great plugin – so many features and well-documented. However I am finding that the highlight of a word in the title of a page is showing up in the menu (which is in the header) and not on the page title in the results area of the search. Eg a page that is titleed ‘Home’ and has the text ‘homepage’ in the content has ‘Home’ highlighted in the menu at the top of the site and the home in ‘homepage’ is also highlighted, but the title of the ‘post’ which is ‘Home’ is not highlighted. Just quickly looking at your code it looks like you are searching for the first instance of the ‘Home’ in a title. I am using the Organic 2.0 Theme – demo.
I’m confused. you said "the tags are not being displayed by Search Unleashed but by something else in your installation" which I as far as I can tell is untrue 😉 and your last comment seems to imply that SU is supposed to display tags like that.
So: can you make it optional?
Upekshapriya, the new version works with the Organic theme.
Matthew, tags with links to tag pages are not being displayed by SU and are being displayed by something else in your installation (likely your theme). If you have the tag module enabled then the matching tag will be displayed by SU, but without any links to tag pages – just plain text. You can disable this by disabling the tag module.
Lecactus, I’ve added the Yandex search engine, and it should convert between cp1251 and whatever encoding your site uses.
Hi, I’ve been loving this plugin. However, today I upgraded to WordPress 2.3 from 2.1, then upgraded to your plugin version 0.2.2 and now when I run a search I always get empty results even from terms I know I have. So, when I go into the admin panel and click "Re-index posts," nothing happens. I don’t get any sign that the plugin is re-indexing. I kinda hate to bug you with this, but I just love the plugin so much.
Have you tried deactivating and reactivating the plugin?
Hi, and thank you for the plugin. It works great after a minor adjustment. The instructions could mention that you have to include
<?php the_excerpt(); ?>
in the theme’s search.php for the post content & highlighting to show. (I’m no expert, but since I was getting simply a list of titles for results, I figured I’d try including the excerpt in search.php, and it did the trick.)There’s a small conflict with the simple wp contact form plugin 0.8.1. Re-indexing posts returns the contact form, not the finished bar like re-indexing comments does.
As a minor suggestion, you could mention in the wildcard instructions above, that wildcards apply only for searches with four characters or more.
Anyway, thanks for the plugin again.
Thanks very much for updating Search Everything to work with Organic theme so quickly!
Another comment. I just realized that searching for e.g. "clim" will highlight those four letters even if they’re a part of a longer word, such as "climbing" or "climate". This makes the asterisk search seem a bit redundant. As far as I can tell, adding an asterisk and searching for "clim*" gets exactly the same hits, and only makes the search highlight whole words ("climbing", "climate" etc.) instead of the four letters searched for. Using WordPress 2.3.1.
Unfortunately the new version of the plugin adds a spurious ‘X’ at the end of each of the link names in the menu at the top of the site in Organic theme so Home becomes HomeX and it’s also the same in the title tag of the link. Looks like a typo may have crept in somewhere!
Sorry if this seems like comment spam 🙂 The asterisk becomes important once +,
minus or AND are introduced. So (+/-)clim won’t include/exclude climbing. It seems to be more complex when using AND (either of two terms must be an exact match, the other can only be cut off from the end w/o an asterisk, not from the beginning), and I doubt it’d be helpful to try to explain this to the regular user.
John: Yes, I’ve deactivated and reactivated the plugin. Then I disabled all of my admin-side plugins and tried again, all to no avail. I thought it might be a browser issue, but when I tried the page in IE, when I click "Re-Index Posts," I get an "Error on Page" note. Firefox doesn’t say anything. So I’m assuming it’s a WP 2.3 conflict?
I have installed this last version of plugin and now doesn’t work in my website… i mean every search made internally at my blog with the search form returned no result! If i deactivate it then it works…
I had no problems with previous version, 0.2.1
thanks, Simone
mhh now seems it works partially, i mean with internal searches, i have changed some options in the admin panel. With the external searches (eg. with Google) seems no problems.
Another thing i have seen it seems it doesn’t reindex posts… the progress bar still to 0!
With the comments no problems
Previous version was working fine but I updated to 0.2.2.
How about this for strange behavior:
I have a theme that puts my pages at the top of my blog as tabs.
Anyway, after EVERY SEARCH it will at the letter X to the name of each tab (except for the first!).
I’ve installed 0.2.2 and see odd behavior when the Post Excerpt module is enabled. For posts and pages with no excerpt or for posts that have an excerpt with no matches it seems to substitute part of the content. For posts with excerpts containing matches the excerpt does not show up in the search results.
Chuck
Hello. There is a conflict with Search Unleashed 0.2.2 and Exec-PHP 4.2. I have some pages whose content is entirely generated with php code. If Exec-PHP is activated while Re-Indexing posts with Search Unleashed, the indexing fails. The progress indicator gets up to 60 (out of 165) posts, stops and starts again in an endless loop. If I disable Exec-PHP, I can index all posts, but when I turn Exec-PHP back on, the content of those pages generated by php is not searchable obviously.
Another side effect of the "X" issue is:
If you then click on one of those posts or pages with an "X", you will see the following at the top of the post/page:
Local Search Results
You arrived here after searching for the following phrase:
>> hello
Click a phrase to jump to the first occurrence, or return to the search results.
This plug works quite well, however I found a bug (lastest version). If a term is preceded by some HTML immediately then it is not found. For example using the HTML tag immediately after brand names without using whitespace between them.
Zsolt
Aaaargh… It’s so silly that the most important thing had been stripped off by the comment engine….
Let’s try it again: BrandnameTM, Brandname isn’t found. I hope you all know what I mean.
Zsolt
Hi, a few days ago, I posted that when I clicked the "Re-index Posts" button, nothing was happening and I was getting an "Error on Page" message. After reading through the comments thread here, I finally de-activated ALL of my other plugins, but left Search Unleashed activated. Then, when I went to the moderation page, the Re-index Posts button finally worked!! Plugin is now working great on my site now. Now I’m getting that weird "X" at the end of post titles that other people are describing, but I can live with that. Again, thanks for the great plugin!! It’s the best! If I have time at some point, I’ll try to narrow it down to a specific plugin conflict.
After I’ve installed the plugin, activated it and indexed my posts, I can’t get to any of the other options to tweak the plugin. My wordpress install says it can’t load the page.
What am I doing wrong?
For what its worth, I’m having the same problem with Askismet as it isn’t deleting marked spam.
Is this an issue with 2.3.1?
I’m running wordpress on a windows server running PHP5.
Thanks for any advice.
Gary
Antti, you can use the ‘force content display’ to make the result content appear in themes that don’t use it (for example, the default theme). As to the asterix, if you read a few pages back through the comments this came up previously (and I think I’ll document about it now!), but basically the search operates differently if using more than 4 characters or less. If it’s more than 4 then you get full pattern matching with relevance. If it’s less then you get basic substring matching and the wildcard is not needed. As 99% of search terms contain neither of these then I don’t think it’s worth confusing people with too many technical details.
With regards the SCF2 Contact Form plugin, the problem is that the plugin incorrectly displays the form when WordPress displays the contact page – it should return the form. This causes a double-form on my site, and the effect you are seeing in SU. You’ll need to speak to the plugin author about this one.
Upekshapriya, that’s my super-ingenious test code – it seems to have got left behind! Removed.
Moncef, the conflict between SU and ExecPHP is probably due to the PHP you are executing. I’ve tried running ExecPHP with SU and it works fine. If you send me the PHP you are trying to run then I can have a look and see why it’s causing a loop.
Zsolt, is your TM symbol entered as an HTML entity (™) or a character?
Chuck, when a post has no excerpt then WP generates it’s own excerpt. The excerpt is only shown on search results if it’s not the same as the content.
Gary, what is the error message? It’s not an issue with 2.3.1
BadMike, glad you got it working. If you can track down the specific plugin and let me know then I can change SU to work with it.
Re Comment 167
The error message I get is the WordPress logo with the following message:
Cannot load search-unleashed.php.
This happens when I try to access Log, Modules and Options.
Only the Search Index tab displays correctly.
Regards
Gary
Hey John,
There’s actually conflict with two plugins, not just one:
1) Who Sees Ads? 1.2 makes it so that the two re-index buttons on the admin page don’t work at all. If you try to click to re-index posts and/or comments, the buttons just don’t do anything. There is a new version of this plugin available (1.3.3) and I don’t know if it’s still a problem with that new version.
http://planetozh.com/blog/my-projects/wordpress-plugin-who-sees-ads-control-adsense-display/
2) Bad Behavior 2.0.7 makes it so that if you click either of the re-index buttons, then you get the status bar, but that just hangs at zero and never actually does any indexing.
http://www.homelandstupidity.us/software/bad-behavior/
It was only after I deactivated both of those plugins (and just those two), that the re-index buttons worked for me again.
Hope that helps. I can understand a little why Bad Behavior might provide a conflict, but Who Sees Ads? mucking things up is just strange, well to me anyway.
Can you add an option to display results that include pages/posts that have a status of "Private"?
Thanks badmike. Unfortunately both of those plugins work fine for me! If you have time you could send me the HTML from the Search Unleashed indexing page when you have these plugins installed. I can take a look and see if anything is being included that shouldn’t be.
Steve, I’ve created a new feature ticket here.
Hi,
the TM was entered as characters between "sup" HTML tags. Like this: Brandname"sup"TM"/sup".
I’m using WP 2.3 and the RS Event plugin to display recent events. After a search is executed, the results page incorrectly displays multiple instances of the search results: one for each of the events in the RS Event area of the sidebar, in addition to the main search results in the main content area. (Try a search on my web site to see the bug in action.) Any suggestions would be appreciated.
"If you have the tag module enabled then the matching tag will be displayed by SU … You can disable this by disabling the tag module." Aha! The problem is, I want SU to search tags – so I need the tag module enabled – but I don’t want it to display anything other than the standard search results. Is it possible to make the tag display optional?
When I activeed the seach I received the following at the top of my pages above header:
Any advice? wordpress 2.3
WordPress database error: [Table ‘uks28489wp123.wp_search_phrases’ doesn’t exist]
INSERT INTO wp_search_phrases (phrase,ip,searched_at) VALUES (‘fhfh’,’1533947873′,NOW())
WordPress database error: [Table ‘uks28489wp123.wp_search’ doesn’t exist]
SELECT DISTINCT SQL_CALC_FOUND_ROWS wp_posts.*, COUNT(post_id) AS multiple,MAX(wp_search.comment_id) AS comment_id FROM wp_search,wp_posts WHERE ((wp_search.content LIKE ‘%fhfh%’ OR wp_search.priority LIKE ‘%fhfh%’)) AND wp_search.post_id=wp_posts.ID AND wp_posts.post_status=’publish’ AND post_password = ” AND post_date
I’m trying out Search Unleashed on a new test blog. I have two problems: 1) when I look for some words that I know are there, they’re never found by this index, but they are by the generic search. 2) when I look for a term that is in the title of the post, the search highlight will insert a span into the anchor title and break the link. I disabled all plugins save this one, and it didn’t help. Is there some other conflict I should be looking for?
Ah, I fixed my second problem by messing about with the "Theme title position."
Hi! Nice plugin! The only disappointment for me was that the search seems unable to find posts by author. For example, I have a new contributor on the site, and I’d like to be able to have people do a search with his name in the search field and find all of his posts. Am I missing something: is this ability already there? If not, do you think it might be added in a future version?
Steve, Zsolt, Markn, Matthew, Witchy, all problems/features have been added in the latest release.
Thank you John!
Fed your kitties 😀
brilliant 🙂