You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Annette Newton <an...@servicetick.com> on 2013/03/18 18:40:16 UTC

Search on final value in multi-valued field

Are multi-valued fields ordered and if so is it possible to search on the
final value only?

-- 

Annette Newton

Database Administrator

ServiceTick Ltd



T:+44(0)1603 618326



Seebohm House, 2-4 Queen Street, Norwich, England NR2 4SQ

www.servicetick.com

*www.sessioncam.com*

-- 
*This message is confidential and is intended to be read solely by the 
addressee. The contents should not be disclosed to any other person or 
copies taken unless authorised to do so. If you are not the intended 
recipient, please notify the sender and permanently delete this message. As 
Internet communications are not secure ServiceTick accepts neither legal 
responsibility for the contents of this message nor responsibility for any 
change made to this message after it was forwarded by the original author.*

Re: Search on final value in multi-valued field

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
So, if you really want that you need to clone the field and keep only the
final value in the clone. In 4.1, there are helpers for that:
http://lucene.apache.org/solr/4_1_0/solr-core/org/apache/solr/update/processor/LastFieldValueUpdateProcessorFactory.html

You don't have to store the copied value, just index it.

Regards,
   Alex.

Personal blog: http://blog.outerthoughts.com/
LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
- Time is the quality of nature that keeps events from happening all at
once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD book)


On Mon, Mar 18, 2013 at 1:46 PM, Jack Krupansky <ja...@basetechnology.com>wrote:

> Yes, order is maintained, but search is simply whether any of the multiple
> values matches.
>
> -- Jack Krupansky
>
> -----Original Message----- From: Annette Newton
> Sent: Monday, March 18, 2013 1:40 PM
> To: solr-user@lucene.apache.org
> Subject: Search on final value in multi-valued field
>
>
> Are multi-valued fields ordered and if so is it possible to search on the
> final value only?
>
> --
>
> Annette Newton
>
> Database Administrator
>
> ServiceTick Ltd
>
>
>
> T:+44(0)1603 618326
>
>
>
> Seebohm House, 2-4 Queen Street, Norwich, England NR2 4SQ
>
> www.servicetick.com
>
> *www.sessioncam.com*
>
> --
> *This message is confidential and is intended to be read solely by the
> addressee. The contents should not be disclosed to any other person or
> copies taken unless authorised to do so. If you are not the intended
> recipient, please notify the sender and permanently delete this message. As
> Internet communications are not secure ServiceTick accepts neither legal
> responsibility for the contents of this message nor responsibility for any
> change made to this message after it was forwarded by the original
> author.*
>

Re: Search on final value in multi-valued field

Posted by Jack Krupansky <ja...@basetechnology.com>.
Yes, order is maintained, but search is simply whether any of the multiple 
values matches.

-- Jack Krupansky

-----Original Message----- 
From: Annette Newton
Sent: Monday, March 18, 2013 1:40 PM
To: solr-user@lucene.apache.org
Subject: Search on final value in multi-valued field

Are multi-valued fields ordered and if so is it possible to search on the
final value only?

-- 

Annette Newton

Database Administrator

ServiceTick Ltd



T:+44(0)1603 618326



Seebohm House, 2-4 Queen Street, Norwich, England NR2 4SQ

www.servicetick.com

*www.sessioncam.com*

-- 
*This message is confidential and is intended to be read solely by the
addressee. The contents should not be disclosed to any other person or
copies taken unless authorised to do so. If you are not the intended
recipient, please notify the sender and permanently delete this message. As
Internet communications are not secure ServiceTick accepts neither legal
responsibility for the contents of this message nor responsibility for any
change made to this message after it was forwarded by the original author.*