Re: Get first value in a multivalued field

2021-03-04 Thread Walter Underwood
...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Mar 4, 2021, at 11:42 AM, ufuk yılmaz wrote: > > Hi, > > Is it possible in any way to get the first value in a multivalued field? > Using function queries, streaming expressions or any other way without >

Get first value in a multivalued field

2021-03-04 Thread ufuk yılmaz
Hi, Is it possible in any way to get the first value in a multivalued field? Using function queries, streaming expressions or any other way without reindexing? (Stream decorators have array(), but no way to get a value at a specific index?) Another one, is it possible to match a regex to a

Cross join on multivalued field

2021-02-23 Thread Luke Oak
Hi, I am wondering whether there is planning to implement cross collections join query on multivalued field Thanks Sent from my iPhone

Re: Why am I able to sort on a multiValued field?

2020-11-14 Thread Erick Erickson
From the “Common Query Paramters” (sort) section of the ref guide: "In the case of primitive fields, or SortableTextFields, that are multiValued="true" the representative value used for each doc when sorting depends on the sort direction: The minimum value in each document is used for ascending

Why am I able to sort on a multiValued field?

2020-11-13 Thread Andy C
I am adding a new float field to my index that I want to perform range searches and sorting on. It will only contain a single value. I have an existing dynamic field definition in my schema.xml that I wanted to use to avoid having to updating the schema: I went ahead and implemented th

Re: Avoiding duplicate entry for a multivalued field

2020-10-30 Thread Munendra S N
erhead with this? > > Thanks, > Srinivas > > > From: Munendra S N > Sent: 30 October 2020 19:20 > To: solr-user@lucene.apache.org > Subject: Re: Avoiding duplicate entry for a multivalued field > > Srinivas, > > For atomic updates, you could use add-disti

RE: Avoiding duplicate entry for a multivalued field

2020-10-30 Thread Srinivas Kashyap
Thanks Munendra, this will really help me. Are there any performance overhead with this? Thanks, Srinivas From: Munendra S N Sent: 30 October 2020 19:20 To: solr-user@lucene.apache.org Subject: Re: Avoiding duplicate entry for a multivalued field Srinivas, For atomic updates, you could use

Re: Avoiding duplicate entry for a multivalued field

2020-10-30 Thread Munendra S N
g query time, the field returns only > unique values? Am I right with my assumption? > > > > And also, what is the performance overhead for this UniqueFiled*Factory? > > > > Thanks, > > Srinivas > > > > From: Dwane Hall > > Sent: 29 October 2020 1

Re: Avoiding duplicate entry for a multivalued field

2020-10-29 Thread Walter Underwood
right with my assumption? > > And also, what is the performance overhead for this UniqueFiled*Factory? > > Thanks, > Srinivas > > From: Dwane Hall > Sent: 29 October 2020 14:33 > To: solr-user@lucene.apache.org > Subject: Re: Avoiding duplicate entry for a multivalued fi

Re: Avoiding duplicate entry for a multivalued field

2020-10-29 Thread Michael Gibney
ucene.apache.org > Subject: Re: Avoiding duplicate entry for a multivalued field > > Srinivas this is possible by adding an unique field update processor to the > update processor chain you are using to perform your updates (/update, > /update/json, /update/json/docs, .../a_c

RE: Avoiding duplicate entry for a multivalued field

2020-10-29 Thread Srinivas Kashyap
, Srinivas From: Dwane Hall Sent: 29 October 2020 14:33 To: solr-user@lucene.apache.org Subject: Re: Avoiding duplicate entry for a multivalued field Srinivas this is possible by adding an unique field update processor to the update processor chain you are using to perform your updates (/update, /update

Re: Avoiding duplicate entry for a multivalued field

2020-10-29 Thread Dwane Hall
From: Srinivas Kashyap Sent: Thursday, 29 October 2020 3:49 PM To: solr-user@lucene.apache.org Subject: Avoiding duplicate entry for a multivalued field Hello, Say, I have a schema field which is multivalued. Is there a way to maintain distinct values for that field though I continue to add

Avoiding duplicate entry for a multivalued field

2020-10-28 Thread Srinivas Kashyap
Hello, Say, I have a schema field which is multivalued. Is there a way to maintain distinct values for that field though I continue to add duplicate values through atomic update via solrj? Is there some property setting to have only unique values in a multi valued fields? Thanks, Srinivas ___

Multivalued field for Analysis on Admin page.

2020-10-09 Thread Jae Joo
I forgot how to enter multivalued in Analysis Page in Admin. Can anyone help? Jae

Query function error - can not use FieldCache on multivalued field

2020-09-14 Thread Shamik Bandopadhyay
Hi, I'm trying to use Solr query function as a boost for term matches in the title field. Here's my boost function bf=if(exists(query({!v='title:Import data'})),10,0) This throws the following error --> can not use FieldCache on multivalued field: data The function s

Re: SOLR Atomic Update - String multiValued Field

2019-07-24 Thread Furkan KAMACI
Hi Doss, What was existing value and what happens after you do atomic update? Kind Regards, Furkan KAMACI On Wed, Jul 24, 2019 at 2:47 PM Doss wrote: > HI, > > I have a multiValued field of type String. > > multiValued="true"/> > > I want to keep this

SOLR Atomic Update - String multiValued Field

2019-07-24 Thread Doss
HI, I have a multiValued field of type String. I want to keep this list unique, so I am using atomic updates with "add-distinct" {"docid":123456,"namelist":{"add-distinct":["Adam","Jane"]}} but this is not maintaining the expe

Parse multivalued field as list with custom function

2019-07-17 Thread Gregory.Guichard
Hello, I'm trying to parse multivalued field (i.e : [8, 6, 9, 50]) as a List in a custom function. I looked all the existing parser here : (https://github.com/apache/lucene-solr/tree/master/solr/core/src/java/org/apache/solr/search), and I don't find any example of how to parse a m

Parse multivalued field as list with custom function

2019-07-16 Thread Gregory.Guichard
Hello, I'm trying to parse multivalued field (i.e : [8, 6, 9, 50]) as a List in a custom function. I looked all the existing parser here : (https://github.com/apache/lucene-solr/tree/master/solr/core/src/java/org/apache/solr/search), and I don't find any example of how to parse a m

Re: How to know which value matched in multivalued field

2019-07-12 Thread Takashi Sasaki
I found this page. https://stackoverflow.com/questions/2135072/determine-which-value-produced-a-hit-in-solr-multivalued-field-type Hmmm... 2019年7月12日(金) 22:08 Takashi Sasaki : > > Hi Solr experts, > > I have multivalued location on RPT field. > Is there a way to know which loca

How to know which value matched in multivalued field

2019-07-12 Thread Takashi Sasaki
Hi Solr experts, I have multivalued location on RPT field. Is there a way to know which location matched by query? sample query: &q=:&fq={!bbox sfield=store}&pt=45.15,-93.85&d=5 Of course I can recalculate on the client side, but I want to know how to do it using Solr's features. Solr version i

Re: Accessing multiValued field from within custom function

2019-02-07 Thread Dariusz Wojtas
Hi, Any hints on this topic? How to access String / Text values from a multiValued field inside custom function? Best regards, Dariusz Wojtas On Thu, Jan 3, 2019 at 6:18 PM Dariusz Wojtas wrote: > Hi, > > I am using SOLR 7.5 in the cloud mode. > I want to create a custom functio

Accessing multiValued field from within custom function

2019-01-03 Thread Dariusz Wojtas
Hi, I am using SOLR 7.5 in the cloud mode. I want to create a custom function similar to 'strdist' that works on multivalued fields (multiValued=true) and finds the highest matching score. Yes, I know the potential performance issues, but in my usecase this would bring a huge benefit. There is no

How to return matches against a multivalued field in Solr search results?

2018-09-27 Thread Pudney Chris (ext) GBJH
G'day, We're running Solr 5.5.5 to build a search application for a repository of MS-Office docs and PDFs. Our schema includes a multivalued field that holds the IDs of objects embedded in our documents - there can be 100s sometimes 1000s of such objects per document. We have a cu

Re: Copyto with DIH Interpreting string as MultiValued field on copy

2018-08-18 Thread Zimmermann, Thomas
Makes total sense. Thanks to both of your for the clarification! On 8/18/18, 8:03 AM, "Alexandre Rafalovitch" wrote: >Amd part of the issue is that SolrEntityProcessor does not take individual >field definitions. So that part is ignored and instead just 'fl' mapping >is >used as Shawn explained.

Re: Copyto with DIH Interpreting string as MultiValued field on copy

2018-08-18 Thread Alexandre Rafalovitch
Amd part of the issue is that SolrEntityProcessor does not take individual field definitions. So that part is ignored and instead just 'fl' mapping is used as Shawn explained. So you could also remap authorText in that definition to an ignored field. See https://github.com/apache/lucene-solr/blob/

Re: Copyto with DIH Interpreting string as MultiValued field on copy

2018-08-17 Thread Shawn Heisey
On 8/17/2018 6:15 PM, Zimmermann, Thomas wrote: I’m trying to track down an odd issue I’m seeing when using the SolrEntityProcessor to seed some test data from a solr 4.x cluster to a solr 7.x cluster. It seems like strings are being interpreted as multivalued when passed from a string field t

Copyto with DIH Interpreting string as MultiValued field on copy

2018-08-17 Thread Zimmermann, Thomas
Hi, I’m trying to track down an odd issue I’m seeing when using the SolrEntityProcessor to seed some test data from a solr 4.x cluster to a solr 7.x cluster. It seems like strings are being interpreted as multivalued when passed from a string field to a text field via the copyTo directive. Any

Re: _childDocuments_ automatically multivalued field type

2018-07-02 Thread jeebix
Ok, I'll have a look at the link above. Thanks a lot... Best JB -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: _childDocuments_ automatically multivalued field type

2018-07-02 Thread jeebix
Ok, I see what I have to look for, thanks to your reply. I'll adjust the schema and see difference. Thanks. Best JB -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: _childDocuments_ automatically multivalued field type

2018-07-02 Thread Shawn Heisey
On 7/2/2018 9:18 AM, jeebix wrote: > I don't understand why for example "type_cmd_s" get the field type attribute > "singleValued", but "TTC" or "kits_sans_suite" get "multiValued" attribute ? > Why those field are in the managed-schema and enseigne_s (for example) is > not ? The field named ensei

Re: _childDocuments_ automatically multivalued field type

2018-07-02 Thread Alexandre Rafalovitch
Because your _s fields must be mapping to the dynamicField definition and are created accordingly in the schema dynamically without needing a special definition for each field. The TTC field you did map explicitly, perhaps with "schemaless" mapping autodiscovery. Which does create specific field d

_childDocuments_ automatically multivalued field type

2018-07-02 Thread jeebix
Hello everybody, I have a problem with some field types in the managed-schema generated. First, the data SOLR returned with a standard query : response":{"numFound":365567,"start":0,"docs":[ { "id":"560.561.134676", "parent_i":560, "asso_i":561, "personne_i"

Re: Solr sort multivalued field

2018-06-12 Thread Shawn Heisey
On 6/12/2018 2:56 AM, Marc Lammers wrote: I want to sort my data by a multivalued field. I add this to my query „*sort=field(foo,min) asc“*. The configuration in the schema for this field is The documentation for the field function says that the field must contain numeric docvalues.  Your

Solr sort multivalued field

2018-06-12 Thread Marc Lammers
Hi All. I want to sort my data by a multivalued field. I add this to my query „*sort=field(foo,min) asc“*. The configuration in the schema for this field is The solr documentation says that i have to add the docValues="true" attribute for this field. After this I deleted the

Re: Query a particular index from a multivalued field.

2018-06-07 Thread Erick Erickson
ould be a duplicated field used only when you wanted to search by position. Best, Erick On Thu, Jun 7, 2018 at 8:36 AM, root23 wrote: > Hi all, > is there a way i can query a particular index of a multivalued field. > e.g lets say i have a document like this > doc 1= { >

Query a particular index from a multivalued field.

2018-06-07 Thread root23
Hi all, is there a way i can query a particular index of a multivalued field. e.g lets say i have a document like this doc 1= { "id": "1", "status": [ "b", "a" ] } doc2= { "id

Solr sort on latest upcoming timestamp value on multivalued field

2018-04-17 Thread sayantan94
I have a multivalued field for session timings (where i store timestamps) of groups document. e.g. session_timings: [1526882026, 1513882026, 1533882026 ]. My sorting logic is the groups should be listed sorted based on their upcoming session time. For example, Group A has three session_timings

Re: Solr 6.6.0 - Error: can not use FieldCache on multivalued field: categoryLevels

2018-02-26 Thread Vincenzo D'Amore
On Mon, Feb 26, 2018 at 7:14 PM, Erick Erickson wrote: > > Faceting works on multivalued fields, perhaps you can do something with > that? > > The main difference I see in this case between facets and groups is that groups are sorted by score, so most relevant group comes first. Which is very use

Re: Solr 6.6.0 - Error: can not use FieldCache on multivalued field: categoryLevels

2018-02-26 Thread Erick Erickson
t;> > Best regards, >> > Vincenzo >> > >> > >> > >> > On Mon, Feb 26, 2018 at 3:22 PM, Amrit Sarkar >> > wrote: >> > >> >> Vincenzo, >> >> >> >> As I read the source code; Schem

Re: Solr 6.6.0 - Error: can not use FieldCache on multivalued field: categoryLevels

2018-02-26 Thread Vincenzo D'Amore
; >> * for a field that may be used to get a FieldCacheSource, throwing > >> * an appropriate exception (including the field name) if it is not. > >> * FieldType subclasses can choose to call this method in their > >> * getValueSource implementation > >>

Re: Solr 6.6.0 - Error: can not use FieldCache on multivalued field: categoryLevels

2018-02-26 Thread Erick Erickson
e subclasses can choose to call this method in their >> * getValueSource implementation >> * @see FieldType#getValueSource >> */ >> public void checkFieldCacheSource() throws SolrException { >> if ( multiValued() ) { >> throw new SolrException(SolrExce

Re: Solr 6.6.0 - Error: can not use FieldCache on multivalued field: categoryLevels

2018-02-26 Thread Vincenzo D'Amore
> * @see FieldType#getValueSource > */ > public void checkFieldCacheSource() throws SolrException { > if ( multiValued() ) { > throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, > "can not use FieldCache on multivalued field:

Re: Solr 6.6.0 - Error: can not use FieldCache on multivalued field: categoryLevels

2018-02-26 Thread Amrit Sarkar
t use FieldCache on multivalued field: " + getName()); } if (! hasDocValues() ) { if ( ! ( indexed() && null != this.type.getUninversionType(this) ) ) { throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, "ca

Solr 6.6.0 - Error: can not use FieldCache on multivalued field: categoryLevels

2018-02-26 Thread Vincenzo D'Amore
Hi, while trying to run a group query on a multivalue field I received this error: can not use FieldCache on multivalued field: true 400 4 org.apache.solr.common.SolrException org.apache.solr.common.SolrException can not use FieldCache on multivalued field

Re: Title Search scoring issues with multivalued field & norm

2018-02-04 Thread Sravan Kumar
affect the score. Any other way to handle norms in multivalued field? On Thu, Feb 1, 2018 at 12:24 PM, Sravan Kumar wrote: > @Walter: Perhaps you are right on not to consider stemming. Instead fuzzy > search will cover these along with the misspellings. > > In case of symbols, we want t

Re: Title Search scoring issues with multivalued field & norm

2018-01-31 Thread Sravan Kumar
-6 different aliases based on what our source gives and we do not really know what is the max. Is there no other way from lucene/solr to use a multivalued field? On Thu, Feb 1, 2018 at 11:06 AM, Walter Underwood wrote: > I was the first search engineer at Netflix and moved their search fro

Re: Title Search scoring issues with multivalued field & norm

2018-01-31 Thread Walter Underwood
; >>>>>> 3> "Beauty and the Beast", "La bella y la bestia" >>>>>> 4> "Beauty and the Beast" >>>>>> >>>>>> Note: Document 3 has two titles in it. >>>>>> >>>>

Re: Title Search scoring issues with multivalued field & norm

2018-01-31 Thread Sravan Kumar
configuration all > > >>> the documents receive same score. But 1,3,4 should have got same > score > > and > > >>> document 2 lesser than others. > > >>> > > >>> To solve this, we followed what is suggested in the following threa

Re: Title Search scoring issues with multivalued field & norm

2018-01-31 Thread Tim Casey
iValue-fields-td1791651.html > >>> > >>> Now, the fields which are used to boost are made to use Norms. And for > >>> matching norms are disabled. This is to make sure that exact & near > exact > >>> matches are rewarded. > >>> > >>> But, for the same query, we get the following results. > >>> query: "Beauty & the Beast" > >>> Search Results: > >>> 1> "Beauty and the Beast" > >>> 4> "Beauty and the Beast" > >>> 2> "The Real Beauty and the Beast" > >>> 3> "Beauty and the Beast", "La bella y la bestia" > >>> > >>> Clearly, the changes have solved only a part of the problem. The > document 3 > >>> should be ranked/scored higher than document 2. > >>> > >>> This is because lucene considers the total field length across all the > >>> values in a multivalued field for normalization. > >>> > >>> How do we handle this scenario and make sure that in multivalued > fields the > >>> normalization is taken care of? > >>> > >>> > >>> -- > >>> Regards, > >>> Sravan > >> >

Re: Title Search scoring issues with multivalued field & norm

2018-01-31 Thread Sravan Kumar
luencing-scores-on-values-in-multiValue-fields-td1791651.html >>> >>> Now, the fields which are used to boost are made to use Norms. And for >>> matching norms are disabled. This is to make sure that exact & near exact >>> matches are rewarded. >>>

Re: Title Search scoring issues with multivalued field & norm

2018-01-31 Thread Erick Erickson
near exact >> matches are rewarded. >> >> But, for the same query, we get the following results. >> query: "Beauty & the Beast" >> Search Results: >> 1> "Beauty and the Beast" >> 4> "Beauty and the Beast" >> 2>

Re: Title Search scoring issues with multivalued field & norm

2018-01-31 Thread Walter Underwood
gt; But, for the same query, we get the following results. > query: "Beauty & the Beast" > Search Results: > 1> "Beauty and the Beast" > 4> "Beauty and the Beast" > 2> "The Real Beauty and the Beast" > 3> "Bea

Title Search scoring issues with multivalued field & norm

2018-01-31 Thread Sravan Kumar
ry: "Beauty & the Beast" Search Results: 1> "Beauty and the Beast" 4> "Beauty and the Beast" 2> "The Real Beauty and the Beast" 3> "Beauty and the Beast", "La bella y la bestia" Clearly, the changes have solved only a

Re: hashJoin - Multivalued field

2018-01-23 Thread Kojo
I´am sorry, everything is working fine! 2018-01-23 16:44 GMT-02:00 Kojo : > I am trying to solve one problem, exactly as the case described here: > > http://lucene.472066.n3.nabble.com/Streaming-expression-API-innerJoin-on- > multi-valued-field-td4353794.html > > I cannot accomplish that on Solr

hashJoin - Multivalued field

2018-01-23 Thread Kojo
I am trying to solve one problem, exactly as the case described here: http://lucene.472066.n3.nabble.com/Streaming-expression-API-innerJoin-on-multi-valued-field-td4353794.html I cannot accomplish that on Solr 6.6, my streaming expression returns nothing: hashJoin( search(scholarship, zkHost=

Re: Grouping by a multivalued field

2017-05-26 Thread Rick Leir
Shacky Quote "A multivalued field is useful when there are more than one value present for the field. An easy example would be tags, there can be multiple tags that need to be indexed...". So yes, you are on the right track. Cheers -- Rick https://stackoverflow.com/questions/5800762/w

Grouping by a multivalued field

2017-05-26 Thread shacky
Hi, I need to create a new collection on my Solr 6.1.0 cluster where every row is a "content" and every content can belong to one or many categories, which are specified in a multivalued field "categories". In my web app the user can search by categories, and if wanted it ca

Re: KeywordTokenizer and multiValued field

2017-04-12 Thread Erick Erickson
So I have a field named "key" that uses KeywordTokenizer and has multiValued="true" set. A doc like val one yet another value third My field will have exactly three indexed tokens val one yet another value third Best, Erick On Wed, Apr 12, 2017 at 2:38 PM, Ahmet Arslan wrote: > I don't

Re: KeywordTokenizer and multiValued field

2017-04-12 Thread Ahmet Arslan
I don't understand the first option, what is each value? Keyword tokenizer emits single token, analogous to string type. On Wednesday, April 12, 2017, 7:45:52 PM GMT+3, Walter Underwood wrote: Does the KeywordTokenizer make each value into a unitary string or does it take the whole list of v

Re: KeywordTokenizer and multiValued field

2017-04-12 Thread Andrea Gazzarini
Hi Wunder, I think it's the first option: if you have 3 values then the analyzer chain is executed three times. Andrea On 12/04/17 18:45, Walter Underwood wrote: Does the KeywordTokenizer make each value into a unitary string or does it take the whole list of values and make that a single st

KeywordTokenizer and multiValued field

2017-04-12 Thread Walter Underwood
Does the KeywordTokenizer make each value into a unitary string or does it take the whole list of values and make that a single string? I really hope it is the former. I can’t find this in the docs (including JavaDocs). wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.or

Count Dates Given A Range in a Multivalued Field

2017-03-20 Thread Furkan KAMACI
Hi All, I have a multivalued date field i.e.: [2017-02-06T00:00:00Z,2017-02-09T00:00:00Z,2017-03-04T00:00:00Z] I want to count how many dates exist given a data range within such field. i.e. start: 2017-02-01T00:00:00Z end: 2017-02-28T00:00:00Z result is 2 (2017-02-06T00:00:00Z and 2017-02-09T

sum multivalued field index with banana

2017-03-16 Thread tkg_cangkul
hi sorry if this a little bit out ouf topic, i've just started to using banana dashboard. and i want to do summarize proccess from data that indexed in solr can i do sum proccess with banana dashboard when i have some multivalued data index on my field? this is my sample data on solr : "ti

Re: Problem with facet and multivalued field

2017-03-02 Thread Sales
Yes, so the terms component will of course show me the same thing as the facet query, I am sure the facet query is not wrong. It shows ` in the values, no matter for which unique product key since there should be 0 of them since there is a splitby, was there something else you wanted me to look

Re: Problem with facet and multivalued field

2017-03-02 Thread Erick Erickson
"should" is the operative term here. My guess is that the data you're putting in the index isn't what you think it is. I'd suggest you use the TermsComponent to examine the data actually in your index. Best, Erick On Thu, Mar 2, 2017 at 3:18 PM, Sales wrote: > We are using Solr 4.10.4. I have a

Problem with facet and multivalued field

2017-03-02 Thread Sales
We are using Solr 4.10.4. I have a few Solr fields in schema.xml defined as follows: Both of them are loaded in via data-config.xml import handler, and they are defined there as: This has been working for years, but, lately, we have noticed strange

Re: Help with design choice: join or multiValued field

2017-02-14 Thread Karl Kildén
Thanks for the reply! We did it this way and it's seems to turn out really well On 6 February 2017 at 22:57, Fuad Efendi wrote: > Correct: multivalued field with 1 shop IDs. Use case: shopping network > in U.S. for example for a big brand such as Walmart, when user implicitly &g

Re: Help with design choice: join or multiValued field

2017-02-06 Thread Fuad Efendi
Correct: multivalued field with 1 shop IDs. Use case: shopping network in U.S. for example for a big brand such as Walmart, when user implicitly provides IP address or explicitly Postal Code, so that we can find items in his/her neighbourhood. You basically provide “join” information via

Help with design choice: join or multiValued field

2017-02-06 Thread Karl Kildén
hop should always be boosted heavily TLDR: Either we just have a multiValued field on the item document with all shops. This would be a multivalued field with 1 rows Or Could we have a new document ShopItem that has the shopId and the itemId (think join table). Then we join this docume

RE: matching string to multivalued field

2016-12-26 Thread Daniel Moura
...@gmail.com] Sent: 26 de dezembro de 2016 16:10 To: solr-user Subject: Re: matching string to multivalued field Why are you trying to do this? I'm wondering if this is an XY problem. For instance, you could use a multivalued field of _text_ type with a positinIncrementGap of 100. No

Re: matching string to multivalued field

2016-12-26 Thread Erick Erickson
Why are you trying to do this? I'm wondering if this is an XY problem. For instance, you could use a multivalued field of _text_ type with a positinIncrementGap of 100. Now you simply search (don't need function queries) for "Deli NCR"~90 and you wouldn't match across mu

matching string to multivalued field

2016-12-25 Thread himanshu pal
Greetings all, I am trying to match a user input string with a multivalued field in solr. For non multivalued fields I was using following function query strdist(def(state_exact,""),"Delhi NCR",edit) Using the same for multivalued fields throws following error "

Re: Is there a way to tell if multivalued field actually contains multiple values?

2016-11-11 Thread Michael McCandless
I think you can use the term stats that Lucene tracks for each field. Compare Terms.getSumTotalTermFreq and Terms.getDocCount. If they are equal it means every document that had this field, had only one token. Mike McCandless http://blog.mikemccandless.com On Fri, Nov 11, 2016 at 5:50 AM, Mik

Re: Is there a way to tell if multivalued field actually contains multiple values?

2016-11-11 Thread Mikhail Khludnev
I suppose it's needless to remind that norm(field) is proportional (but not precisely by default) to number of tokens in a doc's field (although not actual text values). On Fri, Nov 11, 2016 at 5:08 AM, Alexandre Rafalovitch wrote: > Hello, > > Say I indexed a large dataset against a schemaless

Re: Is there a way to tell if multivalued field actually contains multiple values?

2016-11-10 Thread Erick Erickson
I don't think so. Once things are indexed, they look just like a regular text field with odd offsets for some of the terms. Of course if you returned the stored form (assuming it's stored) it'd look different, but that's messy too. Best, Erick On Thu, Nov 10, 2016 at 6:08 PM, Alexandre Rafalovitc

Is there a way to tell if multivalued field actually contains multiple values?

2016-11-10 Thread Alexandre Rafalovitch
Hello, Say I indexed a large dataset against a schemaless configuration. Now I have a bunch of multivalued fields. Is there any way to say which of these (text) fields have (for given data) only single values? I know I am supposed to look at the original data, and all that, but this is more for de

Count on Multivalued field using facet

2016-10-06 Thread Aswath Srinivasan (TMS)
Hello, I'm having a result set something like this, and query like below. The facet count for Line field is 1(1). That is, value Line's value 1 has numBucket = 1. However, I need to count the number of occurrence of each of the values in the LINE field. Is there a way to do this? Expecting som

Re: Matching all terms in a multiValued field

2016-07-01 Thread Erick Erickson
al and paid_source - Alice should be able to > see this document, but Bob should not. > > So if I am creating a query for Bob, how can I write it so that he can't see > Document 1? I.e. how do I create a query that checks the multiValued field > for 'confidential'

Re: Solr 5.2.0 - support for multiValued field sorting?

2016-07-01 Thread Erick Erickson
First answer "what does sorting on a field with more than one value mean?" Say I have "aardvark" and "zebra". Where should the doc go, at the beginning or end of the list? For numerics at least you can do this, see: https://lucidworks.com/blog/2015/09/10/minmax-on-

Solr 5.2.0 - support for multiValued field sorting?

2016-07-01 Thread Harsh Darji
Hi, We are using solr 5.2.0. We have requirement to sort dynamic fields which contains multivalued = true.Can any one guide me how we can achieve it?If newer version of solr supports it we are ok to upgrade solr. Regards,Harsh

Matching all terms in a multiValued field

2016-07-01 Thread Ellis, Tom (Financial Markets IT)
fidential and paid_source - Alice should be able to see this document, but Bob should not. So if I am creating a query for Bob, how can I write it so that he can't see Document 1? I.e. how do I create a query that checks the multiValued field for 'confidential' but excludes

Re: Is there any JIRA changed the stored order of multivalued field?

2016-04-19 Thread forest_soup
Thanks! That's very helpful! -- View this message in context: http://lucene.472066.n3.nabble.com/Is-there-any-JIRA-changed-the-stored-order-of-multivalued-field-tp4264325p4271312.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Is there any JIRA changed the stored order of multivalued field?

2016-03-28 Thread Chris Hostetter
: We do POST to add data to Solr v4.7 and Solr v5.3.2 respectively. The : attachmentnames are in 789, 456, 123 sequence: ... : And we do GET to select data from solr v4.7 and solr v5.3.2 respectively: : http://host:port/solr/collection1/select?q=id:1&wt=json&indent=true ... : Is

Is there any JIRA changed the stored order of multivalued field?

2016-03-19 Thread forest_soup
t;456", "789"],*/ "_version_":1529020749012008960}] }} solr v5.3.2 response: { "responseHeader":{ "status":0, "QTime":37, "params":{ "q":"id:1", "indent":"true", "wt":"json"}}, "response":{"numFound":1,"start":0,"docs":[ { "id":"1", "subject_store":"111", "owner":"1", "sequence":1, "unid":"1", "customerid":"1", "servername":"1", "noteid":"1", /*"attachmentnames":["789", "456", "123"]*/, "_version_":1529046229145616384}] }} Is there any JIRA fixed making this order changed? Thanks! -- View this message in context: http://lucene.472066.n3.nabble.com/Is-there-any-JIRA-changed-the-stored-order-of-multivalued-field-tp4264325.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Faceting and multiValued field type

2016-01-19 Thread Erick Erickson
bq: which of those date values will be used for faceting when I use range-search faceting on this field? All of them. Which values match in a multiValued field, range query or not, have no bearing on the facet counts. Faceting essentially says "take all the docs that match the query and, for

Re: Faceting and multiValued field type

2016-01-19 Thread Steven White
My apology for not being clear -- I left out the keyword "range search" with facet. Let me try again. Using DateRangeField field type, if this field is multiValued and I have 3 date values stored for one record, 5 for another, etc., which of those date values will be used for faceting when I use

Re: Faceting and multiValued field type

2016-01-19 Thread Erick Erickson
Yes. What do you mean "how does it work"? The low-level details or what? Basically, faceting just... facets. I.e. for each unique value in the field specified it counts the number of docs in the result set that have that value. So if you have a doc with two dates and facet on that field, say 1/1

Faceting and multiValued field type

2016-01-19 Thread Steven White
Hi everyone, Can I use facet on a field type of multiValued? If so, how does facet work with field type of "date" set as multiValued? Thanks Steve

Error: FieldCache on multivalued field

2016-01-13 Thread Lewin Joy (TMS)
*updated subject line Hi, I have been facing a weird issue in solr. I am working on Solr 4.10.3 on Cloudera CDH 5.4.4 and am trying to group results on a multivalued field, let's say "interests". This is giving me an error message below: "error": { "ms

Re: Solr /export handler is exporting only unique values from multivalued field?

2016-01-11 Thread Alok Bhandari
Thanks Joel. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-export-handler-is-exporting-only-unique-values-from-multivalued-field-tp4249986p4250067.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr /export handler is exporting only unique values from multivalued field?

2016-01-11 Thread Joel Bernstein
riority for me and I am stuck , please can someone help. >> >> I am using solr 5.2 >> >> Thanks, >> Alok >> >> >> >> -- >> View this message in context: >> http://lucene.472066.n3.nabble.com/Solr-export-handler-is-exporting-only-unique-values-from-multivalued-field-tp4249986.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> > >

Re: Solr /export handler is exporting only unique values from multivalued field?

2016-01-11 Thread Joel Bernstein
> Thanks, > Alok > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Solr-export-handler-is-exporting-only-unique-values-from-multivalued-field-tp4249986.html > Sent from the Solr - User mailing list archive at Nabble.com. >

Solr /export handler is exporting only unique values from multivalued field?

2016-01-11 Thread Alok Bhandari
,item2 This is priority for me and I am stuck , please can someone help. I am using solr 5.2 Thanks, Alok -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-export-handler-is-exporting-only-unique-values-from-multivalued-field-tp4249986.html Sent from the Solr - User

Re: Count multivalued field issue

2016-01-06 Thread Jack Krupansky
ork, be sure to provide detail of what the symptom is rather than simply saying that it doesn't work. -- Jack Krupansky On Wed, Jan 6, 2016 at 8:43 AM, marotosg wrote: > Hi, > > I am trying to add a new field to my schema to add the number of items of a > multivalued field. &g

Re: Count multivalued field issue

2016-01-06 Thread Binoy Dalal
count = array_count($array); > > > > On 6 January 2016 at 08:43, marotosg wrote: > > > Hi, > > > > I am trying to add a new field to my schema to add the number of items > of a > > multivalued field. > > I am using solr 4.11 > >

Re: Count multivalued field issue

2016-01-06 Thread GW
of items of a > multivalued field. > I am using solr 4.11 > > These are my fields on *schema.xml* > multiValued="true" stored="true" /> > > > Here is the update done to my *solrconfig.xml*. I created an > upd

Count multivalued field issue

2016-01-06 Thread marotosg
Hi, I am trying to add a new field to my schema to add the number of items of a multivalued field. I am using solr 4.11 These are my fields on *schema.xml* Here is the update done to my *solrconfig.xml*. I created an updateRequestProcessorChain and add it to the update handler

Re: Permutations of entries in a multivalued field

2015-12-21 Thread Johannes Riedl
ecember 18, 2015 2:27 PM To: solr-user Subject: Re: Permutations of entries in a multivalued field The other thing to check is the ComplexPhraseQueryParser, see: https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-ComplexPhraseQueryParser It uses the Span queries to build up

RE: Permutations of entries in a multivalued field

2015-12-18 Thread Allison, Timothy B.
Duh, didn't realize you could set inOrder in Solr. Y, that's the better solution. -Original Message- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Friday, December 18, 2015 2:27 PM To: solr-user Subject: Re: Permutations of entries in a multivalued field

  1   2   3   4   5   >