Issue Details (XML | Word | Printable)

Key: LUCENE-1137
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Grant Ingersoll
Reporter: Grant Ingersoll
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Lucene - Java

Token type as BitSet: typeBits()

Created: 16/Jan/08 04:31 PM   Updated: 11/Oct/08 12:49 PM
Return to search
Component/s: Analysis
Affects Version/s: None
Fix Version/s: 2.4

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works LUCENE-1137.patch 2008-01-16 07:30 PM Grant Ingersoll 4 kB
Text File Licensed for inclusion in ASF works LUCENE-1137.patch 2008-01-16 06:41 PM Grant Ingersoll 4 kB
Text File Licensed for inclusion in ASF works LUCENE-1137.patch 2008-01-16 04:47 PM Grant Ingersoll 3 kB

Resolution Date: 24/Jan/08 03:01 PM


 Description  « Hide
It is sometimes useful to have a more compact, easy to parse, type representation for Token than the current type() String. This patch adds a BitSet onto Token, defaulting to null, with accessors for setting bit flags on a Token. This is useful for communicating information about a token to TokenFilters further down the chain.

For example, in the WikipediaTokenizer, the possibility exists that a token could be both a category and bold (or many other variations), yet it is difficult to communicate this without adding in a lot of different Strings for type. Unlike using the payload information (which could serve this purpose), the BitSet does not get added to the index (although one could easily convert it to a payload.)



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #614891 Thu Jan 24 14:58:34 UTC 2008 gsingers LUCENE-1137: Added Token.get/setFlags() Release the hounds
Files Changed
MODIFY /lucene/java/trunk/src/java/org/apache/lucene/analysis/Token.java

Repository Revision Date User Message
ASF #614892 Thu Jan 24 15:01:03 UTC 2008 gsingers LUCENE-1137
Files Changed
MODIFY /lucene/java/trunk/CHANGES.txt