Re: boost last modified documents doesn't work

2022-01-14 Thread Susmit
you can look at the detailed score calculation to see the ranking of results using debug.explain.structured=true in query Sent from my iPhone > On Jan 14, 2022, at 7:20 AM, Fabian Smagghe wrote: > > Dear all, > In solr, I want to show the last modified documents first. I use exemples in > S

Re: Can I insert query result into another collection of the same Solr?

2022-03-23 Thread Susmit
Hi, you can look at the updatestream from streaming api of solr, it can take a search expression and emitted tuples can be added to a new collection. https://solr.apache.org/guide/8_4/stream-decorator-reference.html Sent from my iPhone > On Mar 23, 2022, at 4:06 AM, WU, Zhiqing wrote: > > H

Re: Suggestions to improve Star queries latencies

2023-11-01 Thread Susmit
edge n gram tokenizer could be useful . that would shift query time compute to index time at the cost of bigger index size. Sent from my iPhone > On Nov 1, 2023, at 7:02 PM, rajani m wrote: > > Sorry, it took too long to get back to this one. > > The search query "http://host:8983/solr/v9/s

Re: Idle timeout expired and Early Client Disconnect errors

2021-03-06 Thread Susmit
i have used a workaround to increase the default (hard coded) timeout of 2 min in solrclientcache. i can run 9+ hour long streaming queries with no issues. Sent from my iPhone > On Mar 2, 2021, at 5:32 PM, ufuk yılmaz wrote: > > I divided the query to 1000 pieces and removed the parallel str

Re: Idle timeout expired and Early Client Disconnect errors

2021-03-06 Thread Susmit
How? O_O > > Sent from Mail for Windows 10 > > From: Susmit > Sent: 06 March 2021 18:35 > To: solr-u...@lucene.apache.org > Subject: Re: Idle timeout expired and Early Client Disconnect errors > > i have used a workaround to increase the default (hard coded) timeout of 2 &g

Re: Searching and WordDelimiterGraphFilterFactory

2021-03-09 Thread Susmit
q.op = AND could be useful. the parts broken down by WDgff joined by ‘AND’ Sent from my iPhone > On Mar 9, 2021, at 3:07 AM, Shaun Campbell wrote: > > Hi > > I'm trying to produce an autosuggestion field for project ids using > ngrams and WordDelimiterGraphFilterFactory to split on word numbe

Re: Distributed search

2021-04-16 Thread Susmit Shukla
Solr streaming may be useful in your case. It can also execute "joins" across different solr cloud instances and also has a SQL facade. Parallel sql https://solr.apache.org/guide/8_6/parallel-sql-interface.html lower level streaming interface https://solr.apache.org/guide/8_6/streaming-expression

Streaming with exists() function

2021-12-23 Thread Susmit Shukla
Hi, I need to annotate the documents matching a simple boolean "OR" query with actual terms found in each document. It is possible in single pass using exists() function in fl param with /select handler. e.g q=text:(val1 OR val2) &fl=foo1:exists(query({!v='text:(val1)'})),foo2:exists(query({!v='te

Streaming evaluators - exists

2021-12-23 Thread Susmit Shukla
Hi, I need to annotate the documents matching a simple boolean "OR" query with actual terms found in each document. It is possible in single pass using exists() function in fl param with /select handler. e.g q=text:(val1 OR val2 OR val3) &fl=foo1:exists(query({!v='text:(val1)'})),foo2:exists(query

Re: Can I insert query result into another collection of the same Solr?

2022-03-24 Thread Susmit Shukla
ollection1, q="*:*", qt="/export", fl="id,a_s,a_i,a_f", sort="a_f asc, a_i asc") On Wed, Mar 23, 2022 at 4:08 PM WU, Zhiqing wrote: > Hi Susmit, > Thanks for your reply. > Since I do not have much experience with t

Re: deleteById for multiple ids with route parameter

2023-05-11 Thread Susmit Shukla
yes, route as well as id parameter is required if the collection is sharded on any other field than the unique id. This feature was broken in solr prior to 8.10. It was fixed with this jira - https://issues.apache.org/jira/browse/SOLR-8889. Multiple ids with route can be deleted by using update re

Re: deleteById for multiple ids with route parameter

2023-05-11 Thread Susmit Shukla
yes, route as well as id parameter is required if the collection is sharded on any other field than the unique id. This feature was broken in solr prior to 8.10. It was fixed with this jira - https://issues.apache.org/jira/browse/SOLR-8889. Multiple ids with route can be deleted by using update re

Re: deleteById for multiple ids with route parameter

2023-05-12 Thread Susmit Shukla
This is the method signature process(SolrClient client, String collection) input is solr client and the solr collection name On Fri, May 12, 2023 at 4:17 AM Anjali Maurya wrote: > Thanks, Susmit for the solution. > > I'm having trouble understanding "req.process(client,

Re: Getting NPE while doing atomic updates using add-distinct for a multivalued field [Solr 8.11.2]

2024-03-29 Thread Susmit Shukla
Ran across similar NullPointerException on Atomic update . Some pointers - the input update contained more than one update for the same unique id . the atomic update operation was doing both 'remove' and add and some value was null. add-distinct without null value fixed it. On Thu, Mar 28, 2024 a