WordPress.org

Forums

Relevanssi - A Better Search
[Plugin: Relevanssi] Author Search? (30 posts)

  1. bgajus
    Member
    Posted 5 years ago #

    Hey msaari,
    I hadn't checked this yet in the settings but was wondering if there is a way to search by author name and have it return all posts by that author.

    http://wordpress.org/extend/plugins/relevanssi/

  2. Mikko Saari
    Member
    Plugin Author

    Posted 5 years ago #

    Currently not possible, but something I can add.

  3. bgajus
    Member
    Posted 5 years ago #

    I can see it being valuable if you have a site with multiple authors. Of course if you set up your theme properly, you can always link to the author's archive. Buy yeah it wouldn't hurt to be able to search in the search field for an author. No rush....maybe something to add down the road. Thanks!! BTW - Plugin is working great for me.

  4. Mikko Saari
    Member
    Plugin Author

    Posted 5 years ago #

    It's fairly simple addition to make, so I'll probably add it for the next version.

  5. Mikko Saari
    Member
    Plugin Author

    Posted 4 years ago #

    This will be included in the version 2.0.

  6. serenasme
    Member
    Posted 4 years ago #

    Hi msaari,
    I have wordpress 3.0.4 version. Relevanssi 2.6 (the last one).
    The problem is that Relevanssi can't find authors' name. I have obviously select the option: "Index and search your posts' authors" and then I have rebuild the index.
    In the template the author's name is recall by "the_author_posts_link();" function.
    So, why I can't find my authors? I have more than 400 authors. If their names are not inside the post (text article) then Relevanssi don't find them.
    For all the rest your plugin is working great (even in custom fields' search). Thank you so much.

  7. Mikko Saari
    Member
    Plugin Author

    Posted 4 years ago #

    If you choose the option, authors are indexed. Relevanssi indexes the display name of the author. If you can't find anything when searching for the authors' display names, I don't know what's going on.

  8. coolakul
    Member
    Posted 4 years ago #

    Hi,
    I have used Relevanssi on my website http://www.pharmaxchange.info/press
    The funny thing is it does not index pages by administrators in my case. Is there a solution for this. The admin name is akul
    First name - Akul
    Last name - Mehta

    Please check and let me know if there are any solutions to rectify it and index those posts as well.

    regards,
    Akul.

  9. Mikko Saari
    Member
    Plugin Author

    Posted 4 years ago #

    By default Relevanssi indexes every post. There's no way to exclude posts by certain author from the index.

  10. coolakul
    Member
    Posted 4 years ago #

    You can go to the website and try it out yourself :). I don't know whats going on.

  11. Mikko Saari
    Member
    Plugin Author

    Posted 4 years ago #

    I went and checked. If I search for "enolates", Relevanssi retrieves a post you've written. So they're in the index, and the problem is they can't be found with the author name? Can't help you with that, sorry. I'll check the code to see if there's a bug. What's your "display name"?

  12. serenasme
    Member
    Posted 4 years ago #

    It's the same for my site. http://new.fucinemute.it/
    If you search for example "Marta Zacchigna" there aren't results (no Marta's posts).

    But if you see her author page, then you will see she wrote 17 articles.
    http://new.fucinemute.it/author/marta-zacchigna/
    Obviously her articles are in the index, but there isn't any reference to her name.

    Her display_name in DB is Marta Zacchigna.

    Maybe some conflict with other plugins? Thank you so much.

  13. Mikko Saari
    Member
    Plugin Author

    Posted 4 years ago #

    Ok, I'll have to investigate. Maybe there's some sort of bug.

  14. Mikko Saari
    Member
    Plugin Author

    Posted 4 years ago #

    Ok, there's indeed a bug. Looks like author names are being indexed, but in a way that doesn't really work. If the author has a one-word display name, search should work just fine. If, like most folks, the author has a two-part name, it won't work. I'll fix this in 2.7.

  15. serenasme
    Member
    Posted 4 years ago #

    Yesssss!! You're great!
    I've checked. One-word display name is founded!!
    Thank you, thank you, thank you.
    I'm waiting for 2.7! ;-)

  16. coolakul
    Member
    Posted 4 years ago #

    same here looking forward to 2.7 now :) hope you release it soon

  17. taeke
    Member
    Posted 4 years ago #

    Same here, any ETA on 2.7?

  18. Mikko Saari
    Member
    Plugin Author

    Posted 4 years ago #

    Let's say couple of weeks or so, maybe faster. I've got it started, but I'm adding a bunch of features, so there's still some coding to do.

  19. taeke
    Member
    Posted 4 years ago #

    Ok, thanks for the update. Really need the feature so if there's anything I can do to help you out let me know!

  20. Mikko Saari
    Member
    Plugin Author

    Posted 4 years ago #

    2.7 is out now and fixes this.

  21. taeke
    Member
    Posted 4 years ago #

    Great news! gonna install it right away

  22. serenasme
    Member
    Posted 4 years ago #

    Now it works perfectly!!! Solved!
    Great job! Thanks Msaari.

  23. robrobro
    Member
    Posted 4 years ago #

    I’m still having issues with this on My site.

    Example:
    This post is authored by David, but if I search for David, it doenst find this post.

    Im using echo get_the_author_meta('first_name')." ".get_the_author_meta('last_name'); to display the authors, but this shouldnt matter should it?

    Do you have any idea about why this isnt working?

  24. Mikko Saari
    Member
    Plugin Author

    Posted 4 years ago #

    What matters is the display_name field of the author. That's what Relevanssi indexes. What do you have there?

  25. mikaelwehner
    Member
    Posted 4 years ago #

    Is it possible to include users in the search somehow? I am developing a site for an organization where each member is a subscriber of the site and the members that writes for the blog are editors. Each member can edit their own user info and we're using the Cimy User Extra Fields plugin to display extra info for their profiles.

    It would be utterly awesome to:
    A) Include all users in searches and return a hit to the user's page, maybe in the same way that author pages does it (yoursite.com/?author=1) but so that a user is returned even if the user hasn't written any posts (which is a must for the default/twentyten author.php.

    B) Even more awesome if the searches could indlude fileds made with the Cimy User Extra Fields plugin. At this point I'm not sure if they use wp_usermeta() to add the extra fields or not.

    Anyway, I think it's a Weakness of WordPress that the user's info is not covered by the internal search engine. I'm so glad that this plugin covers the custom fields however!

  26. Mikko Saari
    Member
    Plugin Author

    Posted 4 years ago #

    Currently Relevanssi only indexes posts. The terms in the index are linked to documents, which are then retrieved with WordPress get_post() function. The display name of the author of the post is indexed as part of the post content, so the plugin can match to that.

    I suppose it's possible to make Relevanssi index user profile data as well. I know somebody has actually done it already, but it was a very complicated hack that involved adding a custom post type and creating posts from users and so on. I think a cleaner solution is possible, it would probably involve doing a custom version of get_post() that can figure out when a user is searched for and that can create post objects out of users... Hmm, looks like I'll have to consider doing this!

    If A) is made possible, B) should be fairly trivial.

    In any case, this is a big thing that requires lots of changes in Relevanssi, so don't expect anything quick. Indexing user profiles (and category pages) is certainly an interesting direction.

  27. mikaelwehner
    Member
    Posted 4 years ago #

    I'm glad that you like the idea. Meanwhile I'm making a customized search page that compares the search string with the usermeta table and
    returns links to users member pages whenever it matches.

  28. Mikko Saari
    Member
    Plugin Author

    Posted 4 years ago #

    Mikael - good news for you, I just put the finishing touches to user profile search. It works, and will appear in a future version. I'll have to see about indexing custom fields for users in a later version, I think.

  29. mikaelwehner
    Member
    Posted 4 years ago #

    Good news indeed! And what can you say about the next version (if you plan to add it in the next version)? Weeks... months? I completely understand if you don't want to say an exact date but it would help to know an approximate time frame.

  30. Mikko Saari
    Member
    Plugin Author

    Posted 4 years ago #

    I'm vague on purpose, because it's not in my hands. Relevanssi is going premium and I'm currently waiting for the good folks at WP Plugins to approve it. Once they do, I'll be able to do updates of both the free version and the premium version. This'll be a premium feature.

    If you want to know when it's available, you can keep checking the WP Plugins web site (and bug them to approve Relevanssi faster) or follow Relevanssi in Facebook.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Relevanssi - A Better Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags