This plugin is great if you just use it by itself. But, it does not work with categories or tags. I wanted to use this with the Facetious Search plugin. I was able to get it to sort of work with category search by changing Core.php to get the $category_id like this:
$category_id = get_category_by_slug($wp->query_vars[“category_name”])->term_id;
The above mostly works. But, if you have posts in sub-categories that are not directly in the category you picked, it does not include them. In that way, it works differently than when you choose a category from the built-in wordpress widget. I didn’t like that inconsistency in the interface. I couldn’t see how to solve that myself.
Tags are completely not supported and I wish they were. I think they could be implemented exactly like categories are, but I didn’t want to take that on myself.
So, I ended up not using this plugin, but I think it has great potential.
]]>After install the plugin does not show the number of search results
my code
<?php /* Search Count */ $allsearch = &new WP_Query("s=$s&showposts=-1"); $count = $allsearch->post_count; _e(''); echo $count . ' '; wp_reset_query(); ?>
In Ulitlity.php on line 72:
You want to use get_bloginfo('wpurl')
instead of get_bloginfo('url')
.
When WordPress is installed in a sub-directory JS and CSS includes break because your are making calls relative to the document root rather than the WordPress directory.
Despite this issue, I reviewed a number of similar plugins and yours was the easy choice.
]]>Is it possible to specify an exact match with a search term with wpsearch? Or, can I specify search tags only?
]]>I’m using this plugin and it works but I swear I can’t find the plugin in my list of installed plugins on wordpress. Is it called something else? In my settings it is listed as WPSearch 2
]]>Hi,
is there any way to not only index categories but also tags?
Super awesome plugin by the way!
After installing the plugin saving posts will last up to at least 2.5 minutes. This is a unworkable situation.
]]>I activated this plugin because it looks promising but I have WP v3.5 and as soon as I activated it all of my dashboard pages appeared blank, then upon trying to load my website I got a server error.
The website encountered an error while retrieving https://….(my website)… It may be down for maintenance or configured incorrectly.
So, I went through my FTP and deleted the plugin ‘wpsearch’ from my plugins folder under wp-content and this brought my site back up, thankfully.
Not sure what the issue is but might want to look into it…
]]>Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/wpsearch) is not within the allowed path(s): (/membri:/membri2) in /membri/xxx/wp-content/plugins/wpsearch/WPSearch/Log.php on line 156
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/wpsearch/log_2012-11-23.txt) is not within the allowed path(s): (/membri:/membri2) in /membri/xxx/wp-content/plugins/wpsearch/WPSearch/Log.php on line 161
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/wpsearch) is not within the allowed path(s): (/membri:/membri2) in /membri/xxx/wp-content/plugins/wpsearch/WPSearch/Log.php on line 156
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/wpsearch/log_2012-11-23.txt) is not within the allowed path(s): (/membri:/membri2) in /membri/xxx/wp-content/plugins/wpsearch/WPSearch/Log.php on line 161
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/wpsearch) is not within the allowed path(s): (/membri:/membri2) in /membri/xxx/wp-content/plugins/wpsearch/WPSearch/Log.php on line 156
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/wpsearch/log_2012-11-23.txt) is not within the allowed path(s): (/membri:/membri2) in /membri/xxx/wp-content/plugins/wpsearch/WPSearch/Log.php on line 161
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/wpsearch) is not within the allowed path(s): (/membri:/membri2) in /membri/xxx/wp-content/plugins/wpsearch/WPSearch/Log.php on line 156
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/wpsearch/log_2012-11-23.txt) is not within the allowed path(s): (/membri:/membri2) in /membri/xxx/wp-content/plugins/wpsearch/WPSearch/Log.php on line 161
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/wpsearch) is not within the allowed path(s): (/membri:/membri2) in /membri/xxx/wp-content/plugins/wpsearch/WPSearch/Log.php on line 156
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/wpsearch/log_2012-11-23.txt) is not within the allowed path(s): (/membri:/membri2) in /membri/xxx/wp-content/plugins/wpsearch/WPSearch/Log.php on line 161
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/wpsearch) is not within the allowed path(s): (/membri:/membri2) in /membri/xxx/wp-content/plugins/wpsearch/WPSearch/Log.php on line 156
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/wpsearch/log_2012-11-23.txt) is not within the allowed path(s): (/membri:/membri2) in /membri/xxx/wp-content/plugins/wpsearch/WPSearch/Log.php on line 161
]]>Hello, thanks for such a wonderful plugin!
Before installing the plugin I was using <?php echo $wp_query->found_posts ?> in my search.php template to display the search result count. After installing the plugin (my searches are faster and more relavant) the ->found_posts variable only contains my posts_per_page value (in this case 4). My pagination still works correctly though. How can I display the total number of search results in search.php?
Thanks!
]]>Hi there
I was wondering if a proper search of the content of custom fields is possible.
I did not find a satisfying answer to that.
Cheers
]]>Hi,
I’ve been happily running WPSearch (2.0.4.0) – great plugin so big thanks for all the work that has gone into it.
In my spare time I have been working on some alternatives to harden WordPress installs – basically by splitting the administration tasks off onto an entirely separate web server (Apache in my case).
In a nutshell, I set it up so that the administrative instance of Apache is the only one that can actually write to the disk; it runs under a different UID to the “end user” Apache, which only ever has read access.
This generally works great, although obviously fails when anything running in “end user space” needs to write to the disk. For example, WPSearch seems to need to write to the disk in the WPSearch/Backends/Phplucene/data directory (some sort of read lock file).
I am guessing this might be a Lucene-level requirement, but I was curious to know if this might be avoidable, either by removing the lock altogether or moving it into the database?
Thanks for any feedback!
]]>Hi, I’ve installed this plugin and it seems to be working fine, but when I perform a search the results are not displayed by date. I assume they are displayed by relevance?
How can I make it so that the newest posts are at the top of the results list?
Many thanks
Jo
Hi,
I ran into a serious problem when saving a somewhat larger menu in a project of mine. This menu has around 80-90 items and 2 levels of items. When i’m saving this menu it takes around 60 seconds to end up with an application 500 error.
From the error-logs i can deduce this error:
[Mon Apr 23 13:54:16 2012] [error] [client xx.xxx.xx.xxx] PHP Fatal error: Maximum execution time of 0 seconds exceeded in /var/www/vhosts/www.example.com/htdocs/wp-content/plugins/wpsearch/WPSearch/Backends/Phplucene/Zend/Search/Lucene/Index/SegmentWriter.php on line 457, referer: https://www.example.com/wp-admin/nav-menus.php
So… what is going on here??
I’ve disabled the WPSearch plugin (2.0.4.0) and my menu is saving fine again in under 10 seconds.
Best regards,
Ruud
There is a conflict between various WP admin functions in the back end and WPSearch Version 2.0.4.0
Core: Media Library – ‘Delete Permanently’
Fatal error: Call to a member function find() on a non-object in /home/public_html/wp-content/plugins/wpsearch/WPSearch/Drivers/Search/Phplucene.php on line 302
WordPress 3.3.1
Common stable plugins: Contact Form 7 on ‘save’
Fatal error: Call to a member function find() on a non-object in /home/public_html/wp-content/plugins/wpsearch/WPSearch/Drivers/Search/Phplucene.php on line 302
Contact Form 7 Version 3.1
Unfortunately core dumps and rapidly fills all disc, So is difficult for me to eliminate cause.
Shame, as it is a great plugin.
]]>I’m using wpsearch in a wordpress network with 2 blogs in subdirectories.
When i run the search, wpsearch always uses the last build index even if the index doesnt belong to the current blog.
Example:
1. I build the index for “Blog 1”
2. I build the index for “Blog 2”
3. I go the the frontend of “Blog 1” and run a search.
Result: Only posts from “Blog 2” are shown in the results
Ive tried upgrading to the last plugin version, deinstalling/installing the plugin, activating the plugin in blog dashboard, activating the plugin in network dashboard.
No method resulted in a different search indexes, i always have the same index regardless of which blog i search in.
Thanks in advance ??
Ps: If i deactivate the Plugin, the searches work fine
]]>Hi,
Thanks for the great plugin.
In my sidebar I have a number of post listings (latest posts, most commented posts etc).
When using this plugin the search overrides these and orders them the same as the search results.
$r = new WP_Query(array('post_type' => $post_type, 'showposts' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'offset' => $offset));
I’ve tried wp_reset_query(); and wp_reset_postdata(); to no avail ??
Any help would be greatly appreciated.
]]>Kenny,
I have tried to utilize the comments on pages Model.php lines 69-75 as well as Phplucene.php line 525 to get custom meta data to no avail.
Here is my new code on Model.php:
$table = self::getTableName(‘postmeta’);
/* Process posts in batches of 20 from the db */
$sql = “SELECT meta_value
FROM $table
WHERE post_id = ‘$post_id’
AND meta_key = ‘keywords'”;
Here is my new code in Phplucene.php:
$comment_blob .= “{$comment->meta_value} “;
Can you tell me what I am doing wrong?
Thanks!
I’m using WP Search 2(.0.4.0) on a site with around 200 pages and custom post types. Search works fine but saving any page or post takes over 30 seconds.
I tried profiling a save with XDebug and the result says that most of the time is spent in Zend_Search_Lucene_Index_SegmentMerger->_mergeStoredFields()
I’m running on Apache 2, PHP 5.3 on Windows 7.
This other problem may be related.
]]>Is there a shortcode for WPSearch 2?
]]>I’m looking for a plugin to search content from any blog across all blogs on a multisite installation (subdomain)
Does this support it? If so, can I get instructions? If not, will it soon?
Thanks.
]]>I came across your WPSearch, which is using Lucene, and this post:
https://www.kapustabrothers.com/2008/01/20/indexing-pdf-documents-with-zend_search_lucene/
So I thought: is this an option which can be build in your indexing engine?
I sure hope so, that would make a killer combo I think.
]]>Hello,
I can still see this message:
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/wpsearch) is not within the allowed path(s):….
….WPSearch/Log.php on line 156, 161
I manually added a subdirectory tmp (wp-content/tmp) but it did not fix the problem. No standard relevant warning in plugin’s interface is visible (permissions etc.) only this notice:
FastCGI is enabled on this server. You may have to extend your FastCGI timout for WPSearch to index properly.
Any ideas?
Thank you very much, with regards Joo
I’ve been having a problem with the WPSearch plugin as of late, mainly performance issues on a WP install that has less than 1000 posts. When I disable the plugin everything clears up.
Aside from general performance degradation, I’ve had an odd problem creep up. When WPSearch is enabled (and only when enabled) if I attempt to make changes to and save menu items in the WP menu manager the save times out. I receive a max execution time exceeded error:
Fatal error: Maximum execution time of 60 seconds exceeded in /home/dev/public_html/wp-content/plugins/wpsearch/WPSearch/Backends/Phplucene/Zend/Search/Lucene/Storage/File.php on line 321
Ideas on where to being troubleshooting this problem?
I originally attributed this to a plugin conflict, or some erroneous function in my custom theme. However after disabling all other plugins and testing with Twenty Ten I’m still throwing the same error when trying to update a menu item.
Any and all help/suggestions welcome and very much appreciated.
]]>Have just installed this nice plugin.
Received an error:
Warning: Division by zero in /home/…/wpsearch/WPSearch/Core.php on line 232
Warning: Division by zero in /home/…/wpsearch/WPSearch/Core.php on line 283
It seems to be related to mu menu, which is called using:
<?php wp_nav_menu( array( ‘theme-location’ => ‘main-menu’ ) ); ?>
The site is currently in a ‘building mode’ – so I can give a url, but it wont exist for very long at the address.
Can you help??
Thanks in advance V
I need and hack to index also all term of any taxonomies of each post.
It works ok, but search excerpt display all terms…
I patched Phplucene.php file on drivers subfolder, near
ADD:
$addc=””; $taxonomies=get_taxonomies();
foreach ($taxonomies as $taxonomy ) {
$terms=wp_get_object_terms( $post->ID, $taxonomy, null);
foreach ($terms as $term) {
$dr= (array) $term;
$addc .= $dr[“name”].” “;
};
};
$post->post_content .= $addc;
BEFORE:
$comments = ($index_comments ? $this->_getCommentsAsString($post->ID) : FALSE);
$categories = ($index_categories ? $this->_getCategoriesAsStrings($post->ID) : FALSE);
# WPSearch_Log::add(‘debug’, “Indexing post: $post->ID”);
$index->addDocument($this->_createLuceneDocument($post, $categories, $comments));
Hey guys,
I know it is highly unlikely, but I was wondering if the plugin at https://www.ads-software.com/extend/plugins/search-tags/ was compatible with “WP Search 2”. We would like to change the search results without having to change the titles and such, and something like this would be really nice.
Thanks!
]]>I wrote a quick script that indexes for WPSearch 2 via cli. I was able to index in excess of a million posts with no problem at all. Just drop it in your WPSearch 2 plugin path and then execute the script with php via cli. Hopefully this will save a few people a lot of money.
https://blogs.cuit.columbia.edu/wpdev/wp-content/uploads/rebuild_index_cli.inc
]]>In the Admin panel, the pages are blank, I can not open anything any configuration, so I had to delete the plugin via FTP to return to get to see the administration pages.
]]>Hi,
I’m probably just missing out on something obvious, but still…
I’m trying to limit the search to certain categories but can’t find the way to do it. Prior to WPSearch (which is great, btw) I used a hidden input tag, but it is disabled now. I have of course checked the relevant box in the options page. What’s next?
Thanks,
Ariel