Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7766921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:32:45+00:00 2026-06-01T15:32:45+00:00

Sorry if the title is not that specific, but I don’t know how else

  • 0

Sorry if the title is not that specific, but I don’t know how else to state my problem. I’m using the searchable plugin and everything was fine until I needed to search for information that is on a domain associated by a hasMany – BelongsTo.
Example:
I have two classes:

class Author {
  String name
  static hasMany = [books: Book]
  static searchable = true
}

And

class Book {
  String name
  static belongTo = [author: Author]
  static searchable = true
}

I need to be able to search a book given either it’s name or author.
But when calling Book.search(query, [properties:['name', author]]) just the name of the Book is searched, but never the Author.
I have tried with author component: true(on Book class), root:false (on Author class) with no luck.

This issue already costed me hours, and I was sure it had to be something simple to implement.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T15:32:46+00:00Added an answer on June 1, 2026 at 3:32 pm

    Did you tried to replace name with author.name, should work,
    refer to documentation on wiring domains in order to be searchable, also luke is a good tool for testing your queries, I couldn’t get it right without this tool http://code.google.com/p/luke/downloads/detail?name=lukeall-3.5.0.jar&can=2&q=

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am sorry for the title but I really do not know how to
Sorry for a long question and not a very descriptive title, but my problem
Sorry the title is not very descriptive but it is a tricky problem to
Sorry if the title is not clear but I ll explain now my problem.
Sorry about the vague title, but I really don't know how to describe this
Sorry for the long winded title, but the requirement/problem is rather specific. With reference
Firstly, i am sorry if the title does not properly describe my problem, but
Sorry for title, I have an interop problem. The C dll that I'm using
First of all, sorry about that title. I'm not the best at writing those
Sorry for the not so great title, but I'm curious how people build a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.