Sv: [SPAM] Process copyField only when field is absent in update

2021-02-11 Thread Hullegård , Jimi
I had a similar need in an old solr project. I was able to handle it with this configuration in solrconfig.xml: lastModified realLastModified realLastModified The logic is basically: Copy the default value (lastModified here) into the target field (realLastModified). If the target

Sv: Extract a list of the most recent field values?

2021-02-05 Thread Hullegård , Jimi
Ah, I never thought about grouping on date ranges, and nesting the faceting like that. Interesting! I managed to do a quick test query that seems to give me what I want: { "query": "*:*", "filter": "+category:* +modified:[NOW/DAY-60DAYS TO *]", "limit": 0, "facet": {

Sv: Extract a list of the most recent field values?

2021-02-05 Thread Hullegård , Jimi
Hi Emir, But that page says: "The field that is being collapsed on. The field must be a single valued String, Int or Float" And the field in question is a multi value field. And when I try using fq={!collapse field=myField} I get: "org.apache.solr.search.SyntaxError: Collapsing not supported

Extract a list of the most recent field values?

2021-02-05 Thread Hullegård , Jimi
Hi, Say we have a bunch of documents in Solr, and each document has a multi value field "category". Now I would like to get the N most recently used categories, ordered so that the most recently used category comes first and then in falling order. My simplistic solution to this would be: 1.

Re: Delayed/waiting requests

2019-01-10 Thread Hullegård , Jimi
Could be caused by garbage collection in the jvm. https://wiki.apache.org/solr/SolrPerformanceProblems Go down to the segment called “GC pause problems” /Jimi Sent from my iPhone On 11 Jan 2019, at 05:05, Gael Jourdan-Weil mailto:gael.jourdan-w...@kelkoogroup.com>> wrote: Hello, We are

SV: Single query to get the count for all individual collections

2019-01-10 Thread Hullegård , Jimi
Unless someone else has a cleaver solution, maybe one option could be to add a new field that simply contains the collection id. Then you could do a facet query on that field to get the count per collection. /Jimi -Ursprungligt meddelande- Från: Zheng Lin Edwin Yeo Skickat: den 10

SV: SV: Tool to format the solr query for easier reading?

2019-01-08 Thread Hullegård , Jimi
imi > > -Ursprungligt meddelande- > Från: Charlie Hull > Skickat: den 8 januari 2019 15:55 > Till: solr-user@lucene.apache.org > Ämne: Re: Tool to format the solr query for easier reading? > > On 08/01/2019 04:33, Hullegård, Jimi wrote: >> Hi, > > Hi

SV: Tool to format the solr query for easier reading?

2019-01-08 Thread Hullegård , Jimi
: Re: Tool to format the solr query for easier reading? On 08/01/2019 04:33, Hullegård, Jimi wrote: > Hi, Hi Jimi, There are some suggestions in part 4 of my recent blog: http://www.flax.co.uk/blog/2018/11/15/defining-relevance-engineering-part-4-tools/ Cheers Charlie > > I often fi

Tool to format the solr query for easier reading?

2019-01-07 Thread Hullegård , Jimi
Hi, I often find myself having to analyze an already existing solr query. But when the number of clauses and/or number of nested parentheses reach a certain level I can no longer grasp what the query is about by just a quick glance. Sometimes I can look at the code generating the query, but it

SV: Include date calculation in field list?

2018-11-13 Thread Hullegård , Jimi
#ms-function You can use it in the field list too. Regards, Alex. On Mon, 12 Nov 2018 at 09:12, Hullegård, Jimi wrote: > > Hi, > > Maybe I have been working too little with Solr lately, but I'm stuck on a > very simple problem (in my mind), and need some help. > > How can

Include date calculation in field list?

2018-11-12 Thread Hullegård , Jimi
Hi, Maybe I have been working too little with Solr lately, but I'm stuck on a very simple problem (in my mind), and need some help. How can I include the result of a date calculation in the field list? For example, let's say that the documents in my index contains the date field 'deadline'.