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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:54:04+00:00 2026-05-15T06:54:04+00:00

I have a question regarding implementation of smart-search features. For example, consider something like

  • 0

I have a question regarding implementation of smart-search features. For example, consider something like “smart mailboxes” in various email applications. Let’s assume you have your data (emails) stored in a database and, depending on the field for which the query will be created, you present different options to the end user. At the moment let’s assume the Subject, Verb, Object approach…

For instance, say you have the following:

SUBJECTs: message, to_address, from_address, subject, date_received
VERBs: contains, does_not_contain, is_equal_to, greater_than, less_than
OBJECTs: ???????

Now, in case it isn’t clear, I want a table structure (although I’m not opposed to an external XMLesque file of some sort) to store (and later retrieve/present) my criteria for smart searches/mailboxes for later use. As an example, using SVO I could easily store then reconstruct a query for “date between two dates” — simply use “date greater than” AND “date less than”. However, what if, in the same smart search, I wanted a “between” OR’ed with another criterion? You can see that it might get out of hand — not necessarily in the query creation (as that is rather simplistic), but in the option presentation and storage mechanism.

Perhaps I need to think more on a more granular level. Perhaps I need to simply allow the user to select AND or OR for each entry independently instead of making it an ALL OR NOTHING type smart search (i.e. instead of MATCH ALL or MATCH ANY, I need to simply allow them to select — I just don’t want it to turn into a Hydra).

Any input would be most appreciated. My apologies if the question is a bit incoherent. It is late, and I my brain is toast.

Best.

  • 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-15T06:54:05+00:00Added an answer on May 15, 2026 at 6:54 am

    The easiest way to do this is to store all of your mailbox information in an SQL database and translate your “subject verb objects” into SQL “where” clauses. Then you let the SQL query compiler do the work for you.

    This is what Apple does in Mail.app, which uses an sqlite database to store all of message header information.

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

Sidebar

Related Questions

I have a question regarding my database design and its implementation that i am
I have a question regarding a race condition scenario. The question: Consider the following
I have a question regarding the doPut method in WebdavServlet implementation in Java. If
enter code hereI have a basic question regarding an implementation using a Axis2 web
I have a question regarding the native Array.forEach implementation of JavaScript: Does it behave
I'm going through the TVAnimationGestures example from WWDC 2010. I have a question regarding
I have a question regarding the implementation of loadView: Right now, I have it
I have a question regarding the implementation of a cancellation policy for a Thread
I have question regarding the SQLAlchemy. How can I add into my mapped class
I have question regarding the use of function parameters. In the past I have

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.