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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:13:49+00:00 2026-06-15T16:13:49+00:00

I am using Lucene 3.6.1. Do you know if there is a way to

  • 0

I am using Lucene 3.6.1.

Do you know if there is a way to change a Term’s value (Term.text()) before Lucene actually perform the search on the Document holding this Term ?

I need this preprocessing because the value is encrypted when written in the index. I although need to do fuzzy search and/or approximate search when searching on this Term.

Best regards.

  • 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-15T16:13:50+00:00Added an answer on June 15, 2026 at 4:13 pm

    You want to change a value stored in the index BEFORE you’ve found it? No, that doesn’t make sense.

    If you are storing data encrypted in the index, you’ll need to search it using encrypted data. If you need to be able take advantage proper text searching, you will simply need to index it in an unencrypted form. Unless you are using some form of encryption that is friendly to text searching, I guess. I suppose if it were a simple cipher or something, you could encrypt both the indexed value and the query and search just fine. Apart from that, though, I don’t think employing fuzzy searches on encrypted data is going to be feasible.

    My Recommendation:

    You could index, but not store, an unencrypted form of the field, allowing you to take advantage of searching as you need.

    A field could then be created storing encrypted field to house the retrievable version of the field. Whether you index that field or not depends on whether you may, in some cases, which to search using encrypted data, but I would guess not.

    Something like:

    Document.add(new Field('fieldname', value, Field.Store.NO, Field.Index.ANALYZED);
    Document.add(new Field('fieldnameencrypted', value, Field.Store.YES, Field.Index.NO);
    

    Only fieldname can be searched, but only fieldnameencrypted can be retrieved from a found document (in it’s encrypted form).

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

Sidebar

Related Questions

I am using Lucene/Solr for my log search tool. Is there a way I
when using lucene 3.5.0, After indexing into a RAMDirectory, is there a simple way
I am using Lucene.NET and I would like to check before whether a document
I'm using Lucene.Net to implement a search website (to search PDFs). Once the keyword
I'm using Lucene, and I'm trying to find a way to index and retrieve
Normally when using Lucene you set a search query and Lucene gives you some
Is it possible to search on date ranges using Lucene in Java? How do
I am executing query using WildcardQuery of Lucene.but I don't know why the result
When using java from Matlab, is there some way to figure out from where
I want to set up a search in Lucene (actually Lucene.NET, but I can

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.