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 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

In my Grails app, I'm using the Searchable plugin for searching/indexing. I want to
For my Grails App i use Searchable Plugin to have an nice google-like Search.
I have following code (in grails and Searchable Plugin aka Compass): class Topic {
I have a search function in my project. In the searchable.xml, i would like
I am working on making a book catalog searchable using Solr. I have written
I have a problem with the routing while using the Searchable Plugin of Neil
I use grails-1.3.2 and hbase-0.2.4 plugin. I want to use searchable plugin, but when
Well I've been trying to get the searchable plugin to work with my current
My Grails app is using the searchable plugin, which builds on Compass and Lucene
Im having some conflicts with the Searchable plugin. I have a filter which fetches

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.