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

  • Home
  • SEARCH
  • 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 8722099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:20:02+00:00 2026-06-13T07:20:02+00:00

Well I’ve been trying to get the searchable plugin to work with my current

  • 0

Well I’ve been trying to get the searchable plugin to work with my current app, but there is one thing that bothers me:

Every search relies solely on the Lucene index.

And that leads to some disturbing problems (like this: http://jan-so.blogspot.mx/2009/04/eager-fetching-and-searchable-plugin-in.html). Basically, every one-to-many relationship will have a null value in a search result. To avoid that, you must make a lot of you Domains searchable, but well, that means that half of my database will be mapped into the Lucene index … and that just sounds wrong.

I’m currently in development environment, so everything is loaded into memory, and Lucene makes java to use at least 40% more memory (a total of 1.2GB is used, and I have restricted what to include in it as much as possible with only and exclude).

So, can I stop it from relying just on Lucene index? I want it to search on the index but no to return only what the index has. Or is it really convenient to keep everything in the index (and thus doing it the searchable way) rather than making manual HQL queries?

  • 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-13T07:20:04+00:00Added an answer on June 13, 2026 at 7:20 am

    Well the answere is: Yes, you can retrieve all the information of an object without having to add it to the index.

    For that you need to configure the plugin. First create the configuration file:

    grails install-searchable-config
    

    Then open it, find the defaultMethodOptions and change the reload param to true. Something like this:

    defaultMethodOptions = [
        search: [reload: true, escape: false, offset: 0, max: 10, defaultOperator: "and"],
        suggestQuery: [userFriendly: true]
    ]
    

    Now the search will reload the objects from the DB, but, as the config file states, the searches will become slower because now it needs to connect to the DB.

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

Sidebar

Related Questions

Well, i'm learning to work with QML and i have one doubt. In my
Well, I know there is a lots of posts about it, but I have
Well I think this is kinda dumb but, I wonder if there's any way
Well, first I know that this question was already asked several times. But I
Well, I have a application which somehow requires some system resources, but how do
well there are 3 activities say Act1 , Act2 and Act3 . in Act1
well, I am trying to include a header file in my project, while the
Well, I was trying to fix this program, and I keep getting the errors
Well, I got table Workers in my DB. There are 4 columns id ,
Well folks I am sorry for the weird title but couldnt find a better

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.