Sort field values by client-specified order

2019-05-03 Thread Andreas Hubold
Hi, we have a fixed number of values in a String field (up to around 100), that should be used for sorting query results. Is there some way to let the client specify the sort order as part of its query? I was thinking about using a function query. Is it possible to specify the order of value

Re: SolrCloud group.query error "shard X did not set sort field values" or how i can set fillFields=true on IndexSearcher.search

2013-07-17 Thread Chris Hostetter
olrCloud group.query error : "shard X did not set sort field values" or how i can set fillFields=true : on IndexSearcher.search : : Thank you! : I really need to eventually increase the number of shards, so I can not : directly use numshards = X and the only way out - splitshards

Re: SolrCloud group.query error "shard X did not set sort field values" or how i can set fillFields=true on IndexSearcher.search

2013-07-15 Thread Erick Erickson
shard1_1 - slave > 9. Commit http://node1:8983/solr/collection1/update?commit=true > 10. Reload http://node1:8983/solr/collection1/select?q=*:* gives me > different results numFound 5,0,10 (i add 10 docs) > Node2 core info is > collection1 - shard1 - 10 docs > collecti

Re: SolrCloud group.query error "shard X did not set sort field values" or how i can set fillFields=true on IndexSearcher.search

2013-07-15 Thread Evgeny Salnikov
%BE%D1%80%D0%BE%D0%BB%D0%B5%D0%B2%D0%B0 returns the familiar error shard 0 did not set sort field values (FieldDoc.fields is null); you must pass fillFields=true to IndexSearcher.search on each shard I somehow did not operate correctly splitshard? Also, I tried once to indicate the number of shard

Re: SolrCloud group.query error "shard X did not set sort field values" or how i can set fillFields=true on IndexSearcher.search

2013-07-13 Thread Erick Erickson
jetty.port=7574 > -DzkHost=localhost:9983 -jar start.jar) > 6. On node2 add new core for collection1 -> shard2. Default core > "collection1" unload. We have one collection over two shard. Shard1 - have > data, shard2 - no data. > 7. Again try group.query > http://node1:

SolrCloud group.query error "shard X did not set sort field values" or how i can set fillFields=true on IndexSearcher.search

2013-07-12 Thread Evgeny Salnikov
hard2. Default core "collection1" unload. We have one collection over two shard. Shard1 - have data, shard2 - no data. 7. Again try group.query http://node1:8983/solr/collection1/select?q=*:*&group=true&group.query=someFiled:someValue . 8. Error: shard 0 did not set sort field

Re: Sort-field for ALL docs in FieldCache for sort queries -> OOM on lots of docs

2013-03-22 Thread Shawn Heisey
On 3/22/2013 8:54 AM, Per Steffensen wrote: > Me too. I will find out soon - I hope! But re-indexing is kinda a > problem for us, but we will figure out. > Any "guide to re-index all you stuff" anywhere, so I do it the easiest > way? Guess maybe there are some nice tricks about steaming data direct

Re: Sort-field for ALL docs in FieldCache for sort queries -> OOM on lots of docs

2013-03-22 Thread Per Steffensen
On 3/21/13 10:50 PM, Shawn Heisey wrote: On 3/21/2013 4:05 AM, Per Steffensen wrote: Can anyone else elaborate? How to "activate" it? How to make sure, for sorting, that sort-field-value for all docs are not read into memory for sorting - leading to OOM when you have a lot of docs

Re: Sort-field for ALL docs in FieldCache for sort queries -> OOM on lots of docs

2013-03-21 Thread Shawn Heisey
On 3/21/2013 4:05 AM, Per Steffensen wrote: Can anyone else elaborate? How to "activate" it? How to make sure, for sorting, that sort-field-value for all docs are not read into memory for sorting - leading to OOM when you have a lot of docs? Can this feature be activated on top of a

Re: Sort-field for ALL docs in FieldCache for sort queries -> OOM on lots of docs

2013-03-21 Thread Per Steffensen
o "activate" it? How to make sure, for sorting, that sort-field-value for all docs are not read into memory for sorting - leading to OOM when you have a lot of docs? Can this feature be activated on top of an existing 4.0 index, or do you have to re-index everything? Thanks a lot f

Re: Sort-field for ALL docs in FieldCache for sort queries -> OOM on lots of docs

2013-03-21 Thread Toke Eskildsen
On Thu, 2013-03-21 at 09:57 +0100, Per Steffensen wrote: > Thanks Toke! Can you please elaborate a little bit? How to use it? What > it is supposed to do for you? Sorry, no, I only know about it on the abstract level. The release notes for Solr 4.2 says * DocValues have been integrated into Solr

Re: Sort-field for ALL docs in FieldCache for sort queries -> OOM on lots of docs

2013-03-21 Thread Per Steffensen
On 3/21/13 9:48 AM, Toke Eskildsen wrote: On Thu, 2013-03-21 at 09:13 +0100, Per Steffensen wrote: We have a lot of docs in Solr. Each particular Solr-node handles a lot of docs distributed among several replica. When you issue a sort query, it seems to me that, the value of the sort-field of

Re: Sort-field for ALL docs in FieldCache for sort queries -> OOM on lots of docs

2013-03-21 Thread Toke Eskildsen
On Thu, 2013-03-21 at 09:13 +0100, Per Steffensen wrote: > We have a lot of docs in Solr. Each particular Solr-node handles a lot > of docs distributed among several replica. When you issue a sort query, > it seems to me that, the value of the sort-field of ALL docs under the >

Sort-field for ALL docs in FieldCache for sort queries -> OOM on lots of docs

2013-03-21 Thread Per Steffensen
Hi We have a lot of docs in Solr. Each particular Solr-node handles a lot of docs distributed among several replica. When you issue a sort query, it seems to me that, the value of the sort-field of ALL docs under the Solr-node is added to the FieldCache. This leads to OOM-exceptions at some

Re: About fsv (sort field falues)

2009-12-08 Thread Yonik Seeley
On Tue, Dec 8, 2009 at 4:04 PM, Marc Sturlese wrote: > I am tracing QueryComponent.java and would like to know the pourpose of doFSV > function. Don't understand what fsv are for. > Have tried some queries with fsv=true and some extra info apears in the > response: > > It's currently an internal

About fsv (sort field falues)

2009-12-08 Thread Marc Sturlese
ead: // The query cache doesn't currently store sort field values, and SolrIndexSearcher doesn't // currently have an option to return sort field values. Because of this, we // take the documents given and re-derive the sort values. Is it for cache pourposes? Thanks in advance!

Re: Sort field

2009-07-23 Thread Erik Hatcher
On Jul 23, 2009, at 11:03 AM, Jörg Agatz wrote: Hallo... I have a problem... i want to sort a field at the Moment the field type is "text", but i have test it with "string" or "date" the content of the field looks like "22.07.09" it is a Date. when i sort, i get : failed to open stream:

Sort field

2009-07-23 Thread Jörg Agatz
Hallo... I have a problem... i want to sort a field at the Moment the field type is "text", but i have test it with "string" or "date" the content of the field looks like "22.07.09" it is a Date. when i sort, i get : failed to open stream: HTTP request failed! HTTP/1.1 500 there_are_more_terms

Re: Does sort field need have to be 'store'?

2007-06-26 Thread Yonik Seeley
On 6/26/07, James liu <[EMAIL PROTECTED]> wrote: thks mike,,,the second question is how to calc the ram size i should have when i wanna index reside completely in RAM. It's fairly specific to the collection... index a bunch of documents and see how much space it takes up. Make sure to do a lot

Re: Does sort field need have to be 'store'?

2007-06-26 Thread James liu
2007/6/27, Mike Klaas <[EMAIL PROTECTED]>: On 25-Jun-07, at 10:53 PM, James liu wrote: > > [quote]how can i use index all with ram and how to config which ram > i should > use?[/quote] Your os will automatically load the most frequently-used parts of the index in ram. If your total ram is at

Re: Does sort field need have to be 'store'?

2007-06-26 Thread Mike Klaas
On 25-Jun-07, at 10:53 PM, James liu wrote: [quote]how can i use index all with ram and how to config which ram i should use?[/quote] Your os will automatically load the most frequently-used parts of the index in ram. If your total ram is at least as large as the total JVM heap size p

Re: Does sort field need have to be 'store'?

2007-06-25 Thread James liu
thks Yonik,and [quote]how can i use index all with ram and how to config which ram i should use?[/quote]

Re: Does sort field need have to be 'store'?

2007-06-25 Thread Yonik Seeley
On 6/25/07, James liu <[EMAIL PROTECTED]> wrote: for example, i wanna sort by datetime, does it have to be store='true', and i wanna define it That's fine... to sort by a field, it must be indexed. It does not matter if it is stored. -Yonik

Does sort field need have to be 'store'?

2007-06-25 Thread James liu
for example, i wanna sort by datetime, does it have to be store='true', and i wanna define it am i right? if right, iwanna define score like that and how to define it or maybe it was if my field all use index=true, stored=false, does it means low disk io and more ram used? how can i use it