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 4586234
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T21:36:36+00:00 2026-05-21T21:36:36+00:00

I have the searchable plugin working with my grails project. I have it indexing

  • 0

I have the searchable plugin working with my grails project. I have it indexing 4 different tables at work. Unfortunately, each table has a date field that is named differently. Some are named createdAt, some named publishedOn, etc…

Within my search, I need to get items that are within a specific date range out of those fields. Is there a way to do this? I’ve seen one specific instance in the documentation for the plugin, but it doesn’t take into account different field names like I have to deal with.

  • 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-05-21T21:36:37+00:00Added an answer on May 21, 2026 at 9:36 pm

    you can configure your domain classes to override or provide additional Lucene index entries for a property under different names.

    So, suppose that you have a class with a ‘publishedOn’ property, but you want that property to be searchable as both ‘publishedOn’ and ‘createdAt’. You would do something like the following:

    class ADomainClass {
        Date publishedOn
    
        static searchable = {
           'publishedOn' format:'yyyyMMdd'
           'publishedOn' name: 'createdAt', format 'yyyyMMdd'
        }
    }
    

    If you only want it to be searchable as ‘createdAt’, then just leave out the first ‘searchable’ entry.

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

Sidebar

Related Questions

For my Grails App i use Searchable Plugin to have an nice google-like Search.
In my Grails app, I'm using the Searchable plugin for searching/indexing. I want to
I have a problem with the routing while using the Searchable Plugin of Neil
Have you managed to get Aptana Studio debugging to work? I tried following this,
I have two simple domains: public class Hotel { static searchable = true Source
we have a eMall application based mainly around a ~500k rows MySQL master table
I have set up a website (www.autobodypartsnow.com) and the search function has gone haywire.
In some project we have very that even our staff is not suppose to
I have a project that adds elements to an AutoCad drawing. I noticed that
I have a script that appends some rows to a table. One of the

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.