question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support field-based analysis

See original GitHub issue

In Lucene , we have the ability to analyze different fields using different analyzers. As initiated in #156 , next natural step should be to support different analysis depending on the field.

Example using Lucene Core :

Map<String, Analyzer> analyzerPerField = new HashMap<>();
analyzerPerField.put("firstname", new StandardAnalyzer());
analyzerPerField.put("address", new WhitespaceAnalyzer());

PerFieldAnalyzerWrapper aWrapper =  new PerFieldAnalyzerWrapper(new StandardAnalyzer(), analyzerPerField);

IndexWriterConfig config = new IndexWriterConfig(aWrapper);

More information : PerFieldAnalyzerWrapper

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
zouziascommented, Apr 6, 2019

I need to add a few more unit tests on this and then release it.

1reaction
zouziascommented, Mar 28, 2019

This feature request is valid.

Do you have any proposal on how the API will look like?

As a first draft, I think about passing a Map[String,String] where keys are field names and values are the class name of the analyzer, ie. org.apache.lucene.analyzer.EnglishAnalyzer. Note: values are string so that they are serializable. WDYT?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Field-Based Static Taint Analysis for Industrial Microservices
Abstract: Taint analysis is widely used for tracing sensitive data. However, the state-of-the-art taint analyzers face challenges on recall, scalability, ...
Read more >
6 Essential Tips for Writing a Field Study Report - Enago
3. Record Study Observations and Analysis. Take notes of your observations based on the defined scope of work (SOW). Furthermore, achieve and ...
Read more >
NNMT: Mean-Field Based Analysis Tools for Neuronal ...
The Neuronal Network Mean-field Toolbox (NNMT) in its current state allows for estimating properties of large neuronal networks, such as firing rates, power ......
Read more >
Custom Field Creation - Qualtrics
Creating custom fields allows you to add new variables to responses after they've already been recorded. You can categorize based on items like...
Read more >
Field-based detection of biological samples for forensic analysis
Field based forensic tests commonly provide information on the presence and identity of biological stains and can also support the identification of species....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found