Questions tagged [solr]
Apache Solr is an open source search server based on the Lucene Java search library.
20,564
questions
0
votes
0
answers
17
views
How to use termfreq(field,value) for both the exact match and partial match in solr?
I'm using solr5.3 in which i have column like document In which i will store the entire html page on it,
now i have application which search both the exact and partial search from that particular ...
0
votes
0
answers
8
views
Javascript SOLR URL Filter Query Parser
We do have filter queries like this in SOLR:
?pageSize=30¤tPage=0&q=blahblah:relevance,sortingNumber-asc:productgroup:houseHoldSoap:soapVariant:TMZ:lengthToBeginningOfEdge:381.0-to-381.0
...
-1
votes
0
answers
33
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
1
answer
23
views
How can I do a simple query to Solr?
TL;DR
I can't make the simplest query in Solr, like searching for the word game over a list of documents (for example books).
I'm following the tutorials here but I think they are a bit outdated. I'm ...
0
votes
0
answers
25
views
Searches for compound words
I am adding search capabilities to a Swedish recipe site. The problem to solve is compound words. Swedish like all or most Germanic languages compound words to a much larger degree than for example ...
0
votes
0
answers
20
views
Solr Search Query is not working with AND and OR operators
I want to build a solr search query to search documents with the following criteria:
the relation between the properties of same Content type should be AND, and OR between different content types
I ...
0
votes
0
answers
12
views
Extremely slow with Solr indexing - at any time only one Thread is executing, all others are blocked
Solr 9.2.1, it appears at any time only one Thread is executing and all others are blocked, though started 20 threads to index. We have 50 million objects to index and it will take 1 year.
Any ...
0
votes
0
answers
18
views
SolrJ Confusion about Clients
SolrJ offers a number of different Types of SolrClients. They are listed here: https://solr.apache.org/guide/solr/latest/deployment-guide/solrj.html#types-of-solrclients
Now if you just simply want to ...
0
votes
0
answers
21
views
How to configure sorted fuzzy search without fuzzy operand in the query in SOLR
The following query does a sorted fuzzy search in SOLR 9.3
{!type=complexphrase inOrder=true}Appfel~1
where
Parameter
Meaning
{! }
Local query parameter referred in SOLR documentation as ...
0
votes
0
answers
15
views
Nutch 1.19 / Solr 9.4.0 How to point Nutch to the Solr instance?
I've been trying to get Solr and Nutch setup, following the tutorial here.
However, I'm stuck at the end of the tutorial where it says:
After that you need to point Nutch to the Solr instance:
(Nutch ...
0
votes
0
answers
17
views
Enabling Solr to retrieve documents using queries with trailing characters
How can I retrieve documents using queries with trailing characters in Solr? For instance, when querying q=entry:bookasd, I want to retrieve documents where the entry field contains values such as ...
0
votes
0
answers
17
views
Apache Solr indexing documents error possible analysis error after I renamed manage_schema.xml with schema.xml
I used Solr 9.4.0 to implement my own Solr search engine but ended up with the above strange errors even though I didn't change anything on managed-schema.xml and just renamed it with manually ...
1
vote
2
answers
29
views
Solr query SolrInputDocument via http request
I got into a very specific issue, I cannot find an answer so I decided to come here.
I have a Node.js application where I am storing an array via Solr. (using solr-client solrClient.add method)
I have ...
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, "...
1
vote
0
answers
12
views
In SOLR DB Is total number of documents always right
Source collection:
Last Modified:about 2 hours ago
Num Docs:1499744710
Max Doc:1511694401
I use pysolr package and run the folowing: results = solr.search(':', rows=step, start=start) without sort ...
2
votes
0
answers
32
views
Encrypt and Decrypt specific field in Apache Solr
I'm working on a project where I need to secure a specific content field in Apache Solr by encrypting the data during indexing and decrypting it during search.
First approach: I've already attempted ...
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
24
views
DSE search: how to find a row where a column whic is part of Search-index doesn’t have any value
I have a SOLR search index on one of my Cassandra table.
To depict the problem here is a hypothetical table and query.
"Please pardon me for bad design, this is just hypothetical table, ...
0
votes
0
answers
21
views
Sitecore index: SwitchOnRebuildSolrCloudSearchIndex not working with manual update strategy
Our Sitecore 9.3 platform has a custom index called "OurProject_crawledcontent" which is used by the search functionality on the main website. This index is rebuilt by a Sitecore task every ...
0
votes
0
answers
12
views
Getting results from a Solr query when the field name contains a comma?
I'm trying to extract data from a solr instance with field names that were programmatically determined. One of the fields has a comma in it and while it returns a key/value pair on a wildcard search ...
0
votes
0
answers
42
views
PHP code to get value from json list with wildcard and produce array [duplicate]
Here is a json list (returned by solr): -
{
"suggest":{
"mySuggester3":{
"\"rich mal\"":{
"numFound":2,
...
0
votes
0
answers
20
views
"Solr Spellchecker Issue: Suggesting 'kothi' Instead of 'kochi'"
I'm encountering an issue with the Solr spellchecker where it suggests "kothi" instead of the correct term "kochi." Despite having both terms in my index, the spellchecker is ...
-1
votes
0
answers
11
views
Solr 8.2.0 issue
in my solr admin ui i am getting the following error
SolrCore Initialization Failures
atom: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:
db: org.apache.solr.common....
0
votes
2
answers
167
views
Unable to attach or mount volumes: timed out waiting for the condition - AKS Solr Server error
I'm trying to run a solr server pod on my AKS cluster, but it keeps throwing an error saying - Unable to attach or mount volumes: unmounted volumes=[backup-repository-solr-backup], unattached volumes=[...
0
votes
0
answers
16
views
Solr Group using child attribute
I have a collection of documents whose structure is as follows:
{
"title": "Shearer: Trossard tore Fulham apart",
"summary": "Premier League's ...
-1
votes
0
answers
18
views
Group by child element of a document, and do a count of the number of occurences of that child in a parameter of the father in solr
So i am trying to do a solr query that uses the following document structure that reflect an article:
{
"title": "",
"summary": "",
"text": "&...
0
votes
0
answers
16
views
using a custom stemmer how can I mark positions (outside of solr)
KeywordRepeat
Emits each token twice, one with the KEYWORD attribute and once without. If placed before a stemmer, the result will be that you will get the unstemmed token preserved on the same ...
0
votes
0
answers
15
views
Dspace shows empty values in statistics
Dspace 6.3 shows no values in statistics. Moreover, it cannot browse authors. I guess, there are problems with solr, but I have no idea how to fix it. Here are solr logs:
2023-11-06 00:00:16,328 INFO ...
0
votes
0
answers
38
views
Solr No class definition Error (analysis Module libraries?)
I have upgraded a solr core instance from version 8.11.2 to 9.4; when i use the prevuious customed browse request handler, the page deplays the following error:
HTTP ERROR 500 java.lang....
0
votes
0
answers
40
views
How to create interval facet in Solr Client
I would like to set the following searching using Solr Client
select?facet=on&facet.field=Score&facet.interval=Score&f.Score.facet.interval.set=[0,10]&f.Score.facet.interval.set=[21,25]...
0
votes
0
answers
21
views
Does the order of the fields matter when setting up the schema.xml?
From what I have found so far only the order of the filters matter.
But, does the order in which the <field ...> are added matter?
I'd prefer to alphabetize and group by multiValued but not ...
0
votes
1
answer
30
views
How to increase size limit of embedded ZooKeeper in Solr Cloud 8.4.0
I am running Solr in Docker and facing error about reaching the size limit of Zookeeper
NIOServerCnxn Exception causing close of session 0x100015d298b0002: Len error 2248387
I have follow the ...
0
votes
0
answers
11
views
solr select a top level nested child from multiple nested documents
I have indexed document with below structure in solr
{
"id": "1",
"name":"name",
...more properties
"likes": [
{"user": "...
2
votes
0
answers
29
views
Which metric to monitor in solr for index update lag in tlog and replication lag in pull replicas
I have a production setup with 20 Solr nodes, and our commit time is set to 30 minutes. However, we've noticed that on a few nodes, data remains stale for hours, and it's unclear when this issue first ...
0
votes
0
answers
37
views
Solr Nested Documents - Schema
I’m using SolrCloud version 8.4. I’m having trouble getting nested document
indexing and querying work. Can anyone give a basic schema for the example data
in Solr documentation:
[{ "id": &...
0
votes
0
answers
22
views
Facing some issue when trying to start Solr in cmd
Have a nice day!
I want to start solr to install Sitecore. I'm unable to install solr in my system. When I try to install solr. It shows some error. Please assist me to solve this issue.......
Error ...
1
vote
0
answers
22
views
SolrCloud delete document only delete on leader replica not the rest replica
I setup solrcloud using solr helm and try to delete one/all documents from a collection. But it turns out that only leader replica deleted them as expected. All others remain the same
Solrcloud ...
0
votes
0
answers
25
views
After install and start Solr server I get error
I install gem 'sunspot_rails' 'sunspot_solr'. I start Solr server by bundle exec rake sunspot:solr:start. I get this error:
org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: ...
0
votes
0
answers
28
views
Apache Solr: How to index documents having fields which are having hierarchical json object as a value with no defined structure
I am doing poc to use se Solr as a search engine for submitting documents having fields with values as another hierarchical json object. The child objects have no definite structure as I are looking ...
0
votes
0
answers
53
views
Solr searching text with percentage sign '%'
I wanna make query into solr by searching values like '75%' or '14%' and etc. Generated query is http://localhost:8983/solr/#/testEngine/query?q=250%25&q.op=OR&indent=true&start=0&rows=...
0
votes
0
answers
18
views
SOLR error java.lang.ClassCastException during indexing DenseVectorField
I'm trying to index vector of dimension 1536 into solr, this is my config.
fieldType
{
"add-field-type": {
"name": "vec1536",
"class": "solr....
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 ...
0
votes
0
answers
11
views
How to export Lucidworks Fusion index with full text
Im looking to export the metadata and the page contents that is being full text indexed and stored in Fusion index. I see there is no direct API available to query the entire content of each record ...
1
vote
0
answers
26
views
Solr nested object schema design
I have a following json document to commit in solr:
{
"threadId":"1",
"app":"application-name",
"server":"server-name",
&...
1
vote
0
answers
67
views
Why following Java code won't update a Solr document?
I have a Solr collection (smartDocument with multiple fields like id, path, name, type etc) and I want to update a specific field, called ai_finished. I first retrieve the smartDocument, then ...
0
votes
0
answers
32
views
Solr: Handling starting and trailing whitespace when using splitBy to populate a multi valued field
I'm using splitBy to populate a multi valued field. There are whitespaces in the result, and I would like to remove them.
In the db:
Name
City
"Peter"
"City A,City B,City C\n"
&...
0
votes
0
answers
22
views
How to get distance score when searching Solr 9 on a DenseVectorField
I've created a solr index (version 9.3.0) of some poems and nursery rhymes. I'm trying to search for related poems and nursery rhymes and want to get back the dot_product distance for each matching ...
0
votes
0
answers
45
views
Solr 8.11.2 Default Filters are not working. I have used below one but still its not working
In Schema file:
enter image description here
In Solrconfig.xml:
enter image description here
Is there any other way to work default filters in solr 8.11.2 and Its worked fine with solr 6.5 version. ...
0
votes
1
answer
90
views
Ruby 3 Rails 7 Solr 9 docker-compose Can't reindex
In my project, I have encountered the reindex problems with Ruby 3 Rails 7 Solr 9(use Sunspot gem)
This is my docker-compose.yml file
version: '3'
services:
db:
image: postgres
volumes:
...
1
vote
0
answers
16
views
Solr 9.2 with JDK 17 : Java script engine not found
I am ugrading my Solr from 8.4 to 9.2 and Java from 11 to 17. Since JDK 12 nashorn java scripts are removed.
Question: How are you using Solr ScriptUpdateProcessorFactory with JDK 12 or up?
Error :
...