Questions tagged [lucene]
The term Lucene refers to the open source Java fulltext search engine library, but also to the entire eco-system that grew around it, including lucene.net, solr, elasticsearch and zend-search-lucene.
11,983
questions
-1
votes
0
answers
32
views
upgraded to version 7.7 for core is failing
i am using below command to upgrade the version for core
sudo java -cp /srv/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-core-7.7.1.jar:/srv/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-...
0
votes
0
answers
27
views
How to do Lucene search with spaceless query?
Document document = new Document();
document.add(new Field("ID", "100", Field.Store.YES, Field.Index.NOT_ANALYZED));
document.add(new Field("TEMPLATE_CONTENT", "...
0
votes
0
answers
26
views
Stop word in elasticsearch
In Elasticsearch, when searching with a stop keyword like "is," "on," or "the," it gets replaced with "?" during the search process. For instance, "...
0
votes
1
answer
22
views
Lucene.net corrupted index (segments.gen)
We're using Lucene.NET library (4.8.0-beta000015) for our search engine. Our server was shut down unexpectedly and ever since then we're getting this error:
Format version is not supported (resource: ...
3
votes
1
answer
93
views
Dense Vector Search with Solr 9.4 - Incorrect dot product and cosine values returned by the knn search
I am experimenting Dense Vector Search with Solr 9.4 but weird dot product values are returned by the knn search.
Here is a basic example :
store a vector [0.57735027,0.57735027,0.57735027] in a ...
0
votes
0
answers
14
views
Hibernate MassIndexer and Lucene connexion closes on mariadb
I've got a piece of code that is re-indexing a table of contacts.
This code was running fine until we execute it on a table containing more than 2 millions of contact. In that configuration the ...
0
votes
1
answer
39
views
AWS Lambda serverless app (docker) markedly slower than local docker
I am hosting a serverless docker app in AWS Lambda this is a .net 8 (however 6 and 7 and even beanstalk behaved the same). The app is .net lucene (4.8 which is in beta) search (index is quite small ...
0
votes
0
answers
23
views
How can I get Apache Lucene demo web application working in Windows 10?
I am trying to follow the Apache Lucene link, https://lucene.apache.org/core/2_9_4/demo3.html to build up a demo web application under Windows 10. I have installed the Tomcat web server and ...
0
votes
0
answers
12
views
Lucene Text highlighting in Arabic language
I have a lucene 8+ project, dealing with various languages including arabic.
The existing code for highlighting search hits works quite well, except in arabic, as the matches and text fraqments are ...
1
vote
1
answer
30
views
SolR & wildcard. Allow partial keyword
I'm trying to play with wildcards features in SolR query process
I'd like to find all documents containing fran* text in my index.
So, why my wildcard syntax do not work ?
Query Details
Here is my ...
1
vote
1
answer
32
views
Kibana regex query on the UI interface
I am trying to search some logs
queryResults: time: 0.079 / 0 rows: 165 sql: select * from ( ( select name, sum(age) as total,
queryResults: time: 10.079 / 0 rows: 165 sql: select * from ( ( select ...
0
votes
0
answers
13
views
Cannot import org.apache.lucene.search.NumericRangeQuery
I added a Maven dependency
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
<version>9.7.0</version>
&...
0
votes
0
answers
26
views
maven not loading analyzer dependency from Lucene, no matter what i do it will not load the dependency
this is the error i receive every single time i try to run the jar file
.0-SNAPSHOT.jar com.mycompany.app.App
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/lucene/...
0
votes
0
answers
10
views
Solr | Partial Document Updates Doesn't work on Child Nested Document
I am following this link: https://solr.apache.org/guide/solr/latest/indexing-guide/partial-document-updates.html to modify the childDocument. Below is the doc I created.
{
"id":"111a&...
0
votes
1
answer
47
views
How to delete Documents-Full Reindex Solr using Apache Nifi PutSolrRecord Processor
Here is the situation:Am new to Apache Nifi. I have built a quick worflow in Apache Nifi to Index Data from Oracle database to Solr Standard Core Instance.
I have 2 Processors:
1-QueryDatabaseTablle-...
0
votes
0
answers
28
views
Indexing files saved under wwwroot in Umbraco 10
I'm re-writing an old Umbraco 7 site in Umbraco 10. The v 7 site allowed pdfs to be stored in a folder in wwwroot and indexed them for search purposes.
In the new site they must still be saved under ...
0
votes
0
answers
16
views
Grafana with Lucene - calculate percentage of representation per channel
I need to show on Grafana count of all rows and project the total in all lines:
In prtsrc I have the count of channel and need show one column with total, for example in this case:
Channel Count ...
0
votes
1
answer
47
views
Is CouchDB-Lucene still the best way to integrate Lucene or SOLR into a CouchDB database?
I am currently working on integrating an indexed text search into a couch database. In the past, for a previous project with the same requirements, we used couchdb-lucene, to integrate lucene into ...
0
votes
1
answer
28
views
Searching documents in Elasticsearch with most common terms with my query but also with least uncommon terms
I am struggling with an Elasticsearch query over a ngrams field. I am trying to fetch those documents that have a value in that field whose ngram tokens are the most similiar to the ones of my query ...
1
vote
0
answers
32
views
File Based Locking vs In-Memory Locking
So I know what locks are and how they are used. I was messing around with Lucene and noticed that it uses a file (.e.g. write.lock) rather than an in-memory object to synchronize the multiple threads ...
2
votes
0
answers
36
views
Solr documents missing from some indexes
I have a collection in SolrCloud (v9.2) containing documents that look like:
{
"id": <uuid> // unique doc ID
"general_id": <uuid> // shared ID, not ...
0
votes
0
answers
16
views
Getting no result in MLT query Solr 8.11.2
I sometimes encounter situations where my Solr MLT query, using Solr version 8.11.2, yields no results, while at other times, it returns a response. I've attempted to execute the same query multiple ...
0
votes
0
answers
44
views
Lucene indexing slow in docker
I am running Lucene 3.4 and it is indexing around 8GB of data. When lucene is running from a docker container it's showing degraded performance - takes more than twice the time(~50 mins) than outside ...
0
votes
1
answer
89
views
does lucene update stop working in hibernate 5
During the startup of the server the indexing works fine(the indexes are created and search works fine). But when we try to update some indexes we got the lock exception and indexes not work and ...
0
votes
1
answer
22
views
Elasticsearch querying time-series data, which approach is more efficient?
I have a use case where i am using elasticsearch datastreams to store logs related data
The current elastisearch policies are set to rollover the indices on two conditions
Rollover if age is 1 day
...
0
votes
0
answers
23
views
What is Lucene equivalent for QueryBuilders.nestedQuery in Elasticsearch?
In Elasticsearch 7.12 I can build a nested query this way:
QueryBuilder nestedQuery = QueryBuilders.nestedQuery(nestedPath, query, ScoreMode.Min)
.ignoreUnmapped(true);
...
0
votes
1
answer
55
views
nutch error: Illegal to have multiple roots (start tag in epilog?)
$ bin/nutch inject crawl/crawldb urls
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/Gjergj%20Kadriu/Documents/apache-nutch-1.19/lib/log4j-slf4j-impl-2....
0
votes
0
answers
18
views
Indexing on a field produces a warning
An application log is filled with following warnings:
o.h.s.u.i.InternalAnalyzerUtils.analyzeSortableValue HSEARCH000321: The analysis of field 'ipDisplay' produced multiple tokens. Tokenization or ...
0
votes
0
answers
26
views
Deleting documents by query and commiting in Lucene index taking long time using SolrJ
To delete documents from lucene index, we are using solrJ 5.5.4 library where we are calling deleteByQuery() and commit() method to perform our operation. The overall operation of deleting documents ...
0
votes
0
answers
17
views
Solr MoreLikeThis in Hybris
I'm trying to get results from solr 'MoreLikeThis' search in Hybris.
For example: If I try to query solr in Solr UI , query will look like this -
https://localhost:8983/solr/...
0
votes
1
answer
51
views
Getting weird result from Solr query
I am using Datastax 6.8. This is my SOLR schema:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<schema name="autoSolrSchema" version="1.5&...
0
votes
0
answers
42
views
How to query Elasticsearch datasource in Grafana?
I want to use an index in Elasticsearch as a data source in Grafana. But I can't query it and extract a specific field from it. I want to have only the data of the fields I want as output from among ...
0
votes
1
answer
33
views
Apache Lucene Search Phrases in Files
I'm working on a project that has search operation of text files by using Apache Lucene.
The code below works well with a single word. When phrases are searched, it gives the results listed below:
...
0
votes
1
answer
26
views
Normalize multiple ElasticSearch search queries
I have a complex query in ElasticSearch looking at different fields. This works very well so far, if you have only one query. I would now like to display several results from different searchobjects ...
0
votes
0
answers
11
views
How to traverse Taxonomy Tree in Apache Lucene?
I have a Lucene application that indexes documents and uses facets.
I want to fetch/get all the existing facets in Taxonomy index. How can I traverse the taxonomy tree?
0
votes
1
answer
19
views
Lucene IndexSearcher - Search if an indexed value is contained in user input
I have an indexed table which contains titles of movies.
{"Titanic", "Fight Club", "Pulp Fiction"}
My users input query will in most cases be a longer string, which ...
0
votes
0
answers
23
views
Lucene Query API: multi filed fuzzy query
I am using Lucene 9.7.0 java library
I like the FuzzyQuery method for searching and my intention is to search phrases
Now my code is working fine but I think there should be more convenient way to do ...
0
votes
0
answers
21
views
Why Lucene's analyzer's normalize method needs a field name
I started to use the Lucene search library (v9.7.0). It works fine and as expected but I don't understand some API. Maybe there exists the best way to go?
I use StandardAnalizer for indexing and ...
0
votes
0
answers
80
views
Number of concurrent search requests on ElasticSearch cluster
My objective is to calculate 2 things
Q1: how many search requests can a elasticsearch cluster can work on at once
Q2: how many search requests can a elasticsearch cluster hold in it's queue before ...
0
votes
0
answers
91
views
Exclude fields in Lucene query from Elasticsearch in Grafana table
In my Elasticsarch instance I have data stored that looks something like this:
{
"name": "Bob",
"age": 25,
"tasks": {
"cleaning": &...
0
votes
0
answers
17
views
How to remove fields data and mapping from "indexes", they are for mutiple tenants without re-indexing documents in Elasticsearch
{
"mappings" : {
"date_detection" : false,
"properties" : {
"@class" : {
"type" : "keyword"
},
...
1
vote
0
answers
37
views
Converting Array of Strings to Array of Objects in SOLR 8.5.2 Document Structure
I am facing an issue with my SOLR (version 8.5) document structure. Currently, I have an array of strings with delimited values in my document, and I'd like to transform it into an array of objects ...
0
votes
0
answers
66
views
Alternative approach to Opensearch cross_fields with fuzzyness
I'm trying to find a solution that allows students to search jobs based on a role query.
I've managed to get exactly what I want using cross_fields, but I loose fuzzyness.
Here is my dataset for ...
1
vote
1
answer
47
views
Sort ElasticSearch children by field in the parent
I have two entities in my application: tasks and users. Each task is assigned to a user. I may have tens of thousands of tasks per application instance but only tens or hundreds of users per ...
0
votes
0
answers
12
views
Access child boolean query matched terms in parent custom wrapper query
I'm writing custom lucene query which is basically a wrapper around boolean query with many should clauses.
I want to access this boolean query's matched terms, and then either filter out this ...
0
votes
1
answer
37
views
Apache Lucene query with specific rule
I have multiple documents in Lucene index
and I want to make an query depend on specific rule , in other words I want to make a query for the whole documents and except some documents from the search ,...
0
votes
0
answers
10
views
Refining Text Search Results in MongoDB 5.0 - Specificity Over General Matches
I am presently working with a MongoDB 5.0 collection in which data is organized in the given format:
{
"_id": "<id>",
"name": "James Smith",
&...
1
vote
1
answer
48
views
Constant score query for Sitecore.ContentSearch.Linq
I am developing a query for global search to one of my client's Sitecore project. The requirement is to search in 2 ways:
For exact match with the search key with title (1st priority);
Split the ...
0
votes
0
answers
51
views
Why does maxClauseCount exceeded depends on the number of nested documents?
Using ElasticSearch (7.10) or OpenSearch (1.3) I get an error "maxClauseCount exceeded" when I query an index that contain nested documents, but it only fails if the number of nested ...
0
votes
0
answers
21
views
solr string field getting no results
I have indexed some data using the string field for name and the entries look like so on my index:
{
"custom_id":"234323244323242",
"full_id":"ju7328732&...