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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:29:40+00:00 2026-06-13T04:29:40+00:00

If I add a custom Attribute, for example part of speech, to TokenStream is

  • 0

If I add a custom Attribute, for example part of speech, to TokenStream is it used in indexing process?

Can I retrieve this attribute from the index? Is it stored for every token?

  • 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-13T04:29:41+00:00Added an answer on June 13, 2026 at 4:29 am

    If I understand what you are looking for here, I think you would need to create you own custom TokenStream (extending a standard TokenStream, I would think) to accomplish this, and determine how you want to store all this extra information. And how to meaningfully retrieve that information from the index.
    I know of no way to accomplish something like that out-of-the-box.

    Off the top of my head, I’d think you’dd need to write a new document for each token coming through your custom tokenstream. Then on searching, use a highlighter, or some such, to get which terms a query is matching on and query the index again to retrieve these metadata documents about that term. This assumes that any token reused by this or another document that is written will have the same metadata assigned to it. If that’s not the case, you’dd have to determine how to indentify the documents you were looking for that wouldn’t be sensitive to collisions.

    Or you could write another field of the same document, creating an ordered list of metadata for each token paralleling the structure of the data. Store both, use a highlighter again to find the searched for result, and parse out the matching position in the list your tokenstream created.

    Well, that’s a couple of thoughts anyway.

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

Sidebar

Related Questions

Can I add custom model attribute titles, so forms could automatically render them instead
I want to add custom attribute settings to a generated anchor link of Wordpress.
I am trying to add a custom data-required attribute to an asp Checkbox control,
I would like to add custom attributes to a MySQL table which I can
I'd like to add custom controls to the mediaPlayer control view much as this
In the following example, can I somehow tell JSF that an <f:attribute> applies to
What's the difference between a product attribute and Custom Options? For example, I have
How can I use Same Custom Validation Attribute Multiple Times on Same Field or
I want to know is there any way to add a custom attribute to
I am developing custom component derived from TCustomControl class. I would like to add

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.