Re: Problem while indexing DATE field in SOLR.

2019-04-26 Thread Alexandre Rafalovitch
Though one can insert an UpdateRequestProcessor to convert any date format. See solrconfig.xml for how it is setup (as part of 'schemaless' parsing). Regards, Alex On Fri, Apr 26, 2019, 3:57 AM Nicolas Franck, wrote: > Dates need to be send in UTC format: > > -mm-ddTHH:MM:SSZ > > or i

Re: Problem while indexing DATE field in SOLR.

2019-04-26 Thread Nicolas Franck
Dates need to be send in UTC format: -mm-ddTHH:MM:SSZ or if you want fractional seconds too: -mm-ddTHH:MM:SS.NNNZ See https://lucene.apache.org/solr/guide/6_6/working-with-dates.html#WorkingwithDates-DateFormatting There is no automatic conversion for dates On 26 Apr 2019, at 09:50,

Problem while indexing DATE field in SOLR.

2019-04-26 Thread Neha
Dear SOLR Team, I am using SOLR 6.6.0 version for indexing data stored in the POSTGRESQL database. I am facing an issue and needs your help Below is the snapshot of the table i am trying to index: - Steps followed for indexing DATETIMELOG field in above table: - 1) First i created field of t

Re: Problem with date field with insert NULL or date '0000-00-00' in solr

2019-03-04 Thread Zheng Lin Edwin Yeo
Usually for this situation, I will set an arbitrary date like '1900-01-01'. Solr's date field won't be able to accept value like 'null' or '-00-00'. Regards, Edwin On Mon, 4 Mar 2019 at 20:55, Jörn Franke wrote: > Simply not insert it > >

Re: Problem with date field with insert NULL or date '0000-00-00' in solr

2019-03-04 Thread Jörn Franke
Simply not insert it > Am 04.03.2019 um 09:30 schrieb Jasmin Mamtora : > > Hi, > > I am using solr 7.5 version and i have a question related to the null value > insert in solr or insert date with '-00-00'. > > Please suggest me , if we can do this. > > Thanks and Regards, > Jasmin Mamtora

Problem with date field with insert NULL or date '0000-00-00' in solr

2019-03-04 Thread Jasmin Mamtora
Hi, I am using solr 7.5 version and i have a question related to the null value insert in solr or insert date with '-00-00'. Please suggest me , if we can do this. Thanks and Regards, Jasmin Mamtora

Re: Date field by Atomic Update

2017-05-16 Thread Shawn Heisey
On 5/15/2017 11:31 PM, Noriyuki TAKEI wrote: > I update some fields by Solj Atomic Update.But in > particular case, an error occurred. > > When I try to set the value "2017-01-01" to date filed > by Solrj Atomic Update,the following error message appears. If the field is using the TrieDateField

Date field by Atomic Update

2017-05-15 Thread Noriyuki TAKEI
java:149) at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:173) at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:138) at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:152) In order to solve this problem,I applied Atomic Update to

Re: Predicting Date Field at Schemaless Mode

2017-03-13 Thread Alexandre Rafalovitch
And this is happening when the type is defined for the first time? You have no field, you send documents, you get new field defined and it is String, not Date? What's the value the field actually stores? Regards, Alex. http://www.solr-start.com/ - Resources for Solr users, new and experien

Re: Predicting Date Field at Schemaless Mode

2017-03-13 Thread Furkan KAMACI
Everything works well but type is predicted as String instead of Date. I create just plain documents as follows: SimpleDateFormat simpleDateFormat = new SimpleDateFormat("-MM-dd'T'HH:mm"); Calendar startDate = new GregorianCalendar(2017, r.nextInt(6), r.nextInt(28));

Re: Predicting Date Field at Schemaless Mode

2017-03-13 Thread Alexandre Rafalovitch
Any other definitions in that URP chain are triggered? Are you seeing this in a nested document by any chance? Regards, Alex. http://www.solr-start.com/ - Resources for Solr users, new and experienced On 13 March 2017 at 10:29, Furkan KAMACI wrote: > Hi, > > I'm testing schemaless mode

Predicting Date Field at Schemaless Mode

2017-03-13 Thread Furkan KAMACI
Hi, I'm testing schemaless mode of Solr 6.4.2. Solr predicts fields types when I generate dummy data and index it to Solr. However I could not make Solr to predict date fields. I tried that: "custom_start":["2017-05-16T00:00"] which is a date parse result of SimpleDateFormat("-MM-dd'T'HH:mm

Re: Solr - Error when trying to index the date field.

2016-06-14 Thread Erick Erickson
BTW, the easiest way to check what schema file you are _actually_ using is through the admin UI. Select a core, go to files>>and click on the schema file in question Best, Erick On Tue, Jun 14, 2016 at 5:53 AM, Shawn Heisey wrote: > On 6/14/2016 6:09 AM, Syedabbasmehdi Rizvi wrote: >> Schema

Re: Solr - Error when trying to index the date field.

2016-06-14 Thread Shawn Heisey
On 6/14/2016 6:09 AM, Syedabbasmehdi Rizvi wrote: > Schema file has a field called timestamp of type date. Still it shows > that error. Did you restart Solr or reload the core/collection after modifying the schema? Are you absolutely sure that you are looking at the active schema file? Users ar

RE: Solr - Error when trying to index the date field.

2016-06-14 Thread Syedabbasmehdi Rizvi
Schema file has a field called timestamp of type date. Still it shows that error. -Original Message- From: Erik Hatcher [mailto:erik.hatc...@gmail.com] Sent: Tuesday, June 14, 2016 5:31 PM To: solr-user@lucene.apache.org Subject: Re: Solr - Error when trying to index the date field

Re: Solr - Error when trying to index the date field.

2016-06-14 Thread Erik Hatcher
You apparently don’t have a `timestamp` field defined in your schema. The error message is: unknown field ‘timestamp’ > On Jun 14, 2016, at 5:18 AM, Syedabbasmehdi Rizvi > wrote: > > Hi, > > I am trying to index a CSV file that contains a date field. I have

Solr - Error when trying to index the date field.

2016-06-14 Thread Syedabbasmehdi Rizvi
Hi, I am trying to index a CSV file that contains a date field. I have the date field configured in schema and config.xml But somehow, it shows an error when I try to index this file which says: SimplePostTool version 5.0.0 Posting files to [base] url http://localhost:8983/solr/polycom/update

Re: Using the date field for searching

2015-08-11 Thread Scott Derrick
Sagar, thanks, Scott Original Message Subject: Re: Using the date field for searching From: Bade, Vidya (Sagar) To: solr-user@lucene.apache.org Date: 08/11/2015 03:05 PM You can use filter query and form the date as follows when a user enters just the year or year and

RE: Using the date field for searching

2015-08-11 Thread Bade, Vidya (Sagar)
: solr-user@lucene.apache.org Subject: Using the date field for searching If I query date:1885 I get an error org.apache.solr.common.SolrException: Invalid Date String:'1885' If I query date:1885* I get no results. and yet there are numerous docs with a year of 1885 in the date strin

Using the date field for searching

2015-08-11 Thread Scott Derrick
Z I get 9 results?? Do the users really have to specify a full xml compliant date string to use the date: field for searching? thanks, Scott

Re: date field in the schema causing a problem

2015-08-10 Thread Scott Derrick
data available for search on the date field. ... : I realize it is complaining because the date string isn't matching the : data_driven_schema file. How can I coerce it into allowing the non-standard : date strings while still using the correctly formatted ones? If you want to preserve a

Re: date field in the schema causing a problem

2015-08-10 Thread Chris Hostetter
: : : : Most documents have a correctly formatted date string and I would like to keep : that data available for search on the date field. ... : I realize it is complaining because the date string isn't matching the : data_driven_schema file. How can I coerce it into allowing th

date field in the schema causing a problem

2015-08-10 Thread Scott Derrick
ed date string and I would like to keep that data available for search on the date field. I'm getting an error when indexing any file that has a non-standard date and its skipping the entire file? POSTing file L02164.html (text/html) to [base]/extract SimplePostTool: WARNING: Solr returned

Re: Displaying a date field that is empty

2015-05-27 Thread Alessandro Benedetti
Hi, > > Would like to check, is there any method to index date that are empty, and > allow it to be searchable and be displayed as an empty field? > > Currently, for my csv records, there's some records which has no date in > the date field, while others have. For those recor

Re: Displaying a date field that is empty

2015-05-27 Thread Ahmet Arslan
Wednesday, May 27, 2015 11:23 AM, Zheng Lin Edwin Yeo wrote: Hi, Would like to check, is there any method to index date that are empty, and allow it to be searchable and be displayed as an empty field? Currently, for my csv records, there's some records which has no date in the date field,

Displaying a date field that is empty

2015-05-27 Thread Zheng Lin Edwin Yeo
Hi, Would like to check, is there any method to index date that are empty, and allow it to be searchable and be displayed as an empty field? Currently, for my csv records, there's some records which has no date in the date field, while others have. For those records with no dates, when I s

Change date field until minute to zero for group by

2015-01-29 Thread suhyunjeon
I got date fields like this. { date:"2013-11-01T16:14:55.372Z", latency:1 }, { date:"2013-11-01T16:14:00.372Z", latency:6 }, { date:"013-11-01T16:15:17.496Z", latency:3 } I want to see the count to group by the date field(until minutes) like that

Getting multiple Result for same document, doing a dateRange query on multiple date field

2014-11-26 Thread Sven Schönfeldt
Hi Solr-Users, i like to do a date range query on a multiple date field "dateField_dts:[NOW TO NOW+7DAY]“. If the query find a document that has more then one date matching in that range, it would be nice to have multiple times the document in the result, with an identification what dat

Re: Date field related query

2014-09-02 Thread Aman Tandon
Thanks Erick :) With Regards Aman Tandon On Tue, Sep 2, 2014 at 8:28 PM, Erick Erickson wrote: > Hmmm, not quite, I think you meant: > > datefield:[NOW/DAY TO NOW/DAY+1DAY] > > You're particularly interested in using date math if > if you use these in filter query clauses, see: > http://search

Re: Date field related query

2014-09-02 Thread Erick Erickson
Hmmm, not quite, I think you meant: datefield:[NOW/DAY TO NOW/DAY+1DAY] You're particularly interested in using date math if if you use these in filter query clauses, see: http://searchhub.org/2012/02/23/date-math-now-and-filter-queries/ Best, Erick On Tue, Sep 2, 2014 at 3:59 AM, François Sch

Re: Date field related query

2014-09-02 Thread François Schiettecatte
How about : datefield:[NOW-1DAY/DAY TO *] François On Sep 2, 2014, at 6:54 AM, Aman Tandon wrote: > Hi, > > I did it using this, fq=datefield:[2014-09-01T23:59:59Z TO > 2014-09-02T23:59:59Z]. > Correct me if i am wrong. > > Is there any way to find this using the NOW? > > > With Re

Re: Date field related query

2014-09-02 Thread Aman Tandon
Hi, I did it using this, fq=datefield:[2014-09-01T23:59:59Z TO 2014-09-02T23:59:59Z]. Correct me if i am wrong. Is there any way to find this using the NOW? With Regards Aman Tandon On Tue, Sep 2, 2014 at 4:08 PM, Aman Tandon wrote: > Hi, > > I am working on date and i want to find all thos

Date field related query

2014-09-02 Thread Aman Tandon
Hi, I am working on date and i want to find all those records which are indexed today. With Regards Aman Tandon

Re: Search on Date Field

2014-08-01 Thread Pbbhoge
Thanks Jack .. it works for me . Regards Pradip -- View this message in context: http://lucene.472066.n3.nabble.com/Search-on-Date-Field-tp4150076p4150573.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Search on Date Field

2014-07-31 Thread Jack Krupansky
s -- Jack Krupansky -Original Message- From: Pbbhoge Sent: Wednesday, July 30, 2014 8:59 AM To: solr-user@lucene.apache.org Subject: Search on Date Field In my SOLR there is date field(published_date) and values are in this format "2012-09-26T10:08:09.123Z" How I can search by

Search on Date Field

2014-07-30 Thread Pbbhoge
In my SOLR there is date field(published_date) and values are in this format "2012-09-26T10:08:09.123Z" How I can search by simple input like "2012-09-10" instead of full ISO date format. Is it possible in SOLR? -- View this message in context: http://lucene.472066.n3.

Re: Any way to parse timestamp into a date field

2014-06-29 Thread Jack Krupansky
@lucene.apache.org Subject: Re: Any way to parse timestamp into a date field If you're using Solrj then you can just add the Date object to SolrInputDocument and everything will be taken care of. But if you are directly uploading data with a date like that then the only option is to use a Script

Re: Any way to parse timestamp into a date field

2014-06-29 Thread Shalin Shekhar Mangar
If you're using Solrj then you can just add the Date object to SolrInputDocument and everything will be taken care of. But if you are directly uploading data with a date like that then the only option is to use a ScriptUpdateProcessor to convert the long to a java Date. On Sun, Jun 29, 2014 at 4:

Any way to parse timestamp into a date field

2014-06-29 Thread Alexandre Rafalovitch
Hello, My data comes with the timestamp 12345654. I want that indexed as a date. It does not seem to be happening with default date type and none of the URPs seem to recognize that format. Is there something terribly obvious I am missing? Regards, Alex. Personal website: http://www.outerthou

Re: Issue paging when sorting on a Date field

2014-05-20 Thread Shawn Heisey
On 5/19/2014 2:05 PM, Bryan Bende wrote: > Using Solr 4.6.1 and in my schema I have a date field storing the time a > document was added to Solr. > > I have a utility program which: > - queries for all of the documents in the previous day sorted by create date > - pages t

Re: Issue paging when sorting on a Date field

2014-05-20 Thread Chris Hostetter
: So I think when I was paging through the results, if the query for page N : was handled by replica1 and page N+1 handled by replica2, and the page : boundary happened to be where the reversed rows were, this would produce : the behavior I was seeing where the last row from the previous page was

Re: Issue paging when sorting on a Date field

2014-05-20 Thread Bryan Bende
replica2, and the page boundary happened to be where the reversed rows were, this would produce the behavior I was seeing where the last row from the previous page was also the first row from the next page. I guess the obvious solution is to ensure the date field is always more granular than minut

Re: Issue paging when sorting on a Date field

2014-05-19 Thread Chris Hostetter
: Using Solr 4.6.1 and in my schema I have a date field storing the time a : document was added to Solr. what *exactly* does your schema look like? are you using "solr.DateField" or "solr.TrieDateField" ? what field options do you have specified? : I have a utility progra

Issue paging when sorting on a Date field

2014-05-19 Thread Bryan Bende
Using Solr 4.6.1 and in my schema I have a date field storing the time a document was added to Solr. I have a utility program which: - queries for all of the documents in the previous day sorted by create date - pages through the results keeping track of the unique document ids - compare the

Re: Custome routing based on date field

2014-04-14 Thread Mukesh Jha
"Aliases are meant for read operations can refer to one or more real collections". So should I go with the approach of creating a collection for per day's data and aliasing a collection with all these collection names? So instead of trying to route the documents to a shard should I send to a spec

Re: Custome routing based on date field

2014-04-14 Thread Alexandre Rafalovitch
Would collection aliasing be a relevant feature here (a different approach): http://blog.cloudera.com/blog/2013/10/collection-aliasing-near-real-time-search-for-really-big-data/ Regards, Alex. Personal website: http://www.outerthoughts.com/ Current project: http://www.solr-start.com/ - Acceler

Custome routing based on date field

2014-04-14 Thread Mukesh Jha
Hello Experts, I want to index my documents in a way that all documents for a day are stored in a single shard. I am planning to have shards for each day e.g. shard1_01_01_2010, shard1_02_01_2010 ... And while hashing the documents of 01/01/2010 should go to shard1_01_01_2010. Thins way I can qu

Re: Date field indexing in Solr

2014-02-28 Thread Erick Erickson
index date columns as UTC format. But we need the > date as it is in the source(DB table) with time associated with that date. > Do we need to use DateFormatTransformer to get the right date format. > > Thanks. > > > > > > -- > View this message in context: > http

Date field indexing in Solr

2014-02-27 Thread solr2020
ate format. Thanks. -- View this message in context: http://lucene.472066.n3.nabble.com/Date-field-indexing-in-Solr-tp4120281.html Sent from the Solr - User mailing list archive at Nabble.com.

AW: Date Field

2013-05-22 Thread Benjamin Kern
How is the format of utc string? Example? thx -Ursprüngliche Nachricht- Von: Chris Hostetter [mailto:hossman_luc...@fucit.org] Gesendet: Mittwoch, 22. Mai 2013 00:03 An: solr-user@lucene.apache.org Betreff: Re: Date Field : 2) Chain TemplateTransformer either by itself or before the

Re: Date Field

2013-05-21 Thread Chris Hostetter
: And DateFormatTransformer does not take timezone into account when it : parses the text. A bit of a stuck situation. Gah! .. i'm sorry about my previous response pointing to the wiki I realize now that I missread the docs and replied to quickly. Alex's response appears correct -- evident

Re: Date Field

2013-05-21 Thread Alexandre Rafalovitch
; Gesendet: Dienstag, 21. Mai 2013 22:45 > An: solr-user@lucene.apache.org > Betreff: Re: Date Field > > This depends on what you use. If you are using SolrJ, it takes the date > itself. Other clients, you may need to ensure you use Localized formatter > with UTC TimeZone when you generat

Re: AW: Date Field

2013-05-21 Thread Chris Hostetter
: : : Schema.xml : : : Result in Solr: 2013-04-30T22:00:00Z : I think the date should look like this: 2013-05-01T00:00:00Z Did you check the docs? if you are using Solr prior to Solr 4.1 what you are describing looks appropriate if your server is running on a machine with a UTC offset of 2

AW: Date Field

2013-05-21 Thread Benjamin Kern
, 21. Mai 2013 22:45 An: solr-user@lucene.apache.org Betreff: Re: Date Field This depends on what you use. If you are using SolrJ, it takes the date itself. Other clients, you may need to ensure you use Localized formatter with UTC TimeZone when you generate the text representation of the date

Re: Date Field

2013-05-21 Thread Alexandre Rafalovitch
at 4:39 PM, Benjamin Kern wrote: > How can I convert the UTC Time? > > -Ursprüngliche Nachricht- > Von: Alexandre Rafalovitch [mailto:arafa...@gmail.com] > Gesendet: Dienstag, 21. Mai 2013 22:37 > An: solr-user@lucene.apache.org > Betreff: Re: Date Field > > The dat

Re: Date Field

2013-05-21 Thread Furkan KAMACI
2:37 > An: solr-user@lucene.apache.org > Betreff: Re: Date Field > > The date field is stored in UTC, absolute time. You need to convert to and > from UTC in the client/middleware as you see fit. > > Regards, >Alex. > Personal blog: http://blog.outerthoughts.c

AW: Date Field

2013-05-21 Thread Benjamin Kern
How can I convert the UTC Time? -Ursprüngliche Nachricht- Von: Alexandre Rafalovitch [mailto:arafa...@gmail.com] Gesendet: Dienstag, 21. Mai 2013 22:37 An: solr-user@lucene.apache.org Betreff: Re: Date Field The date field is stored in UTC, absolute time. You need to convert to and from

Re: Date Field

2013-05-21 Thread Alexandre Rafalovitch
The date field is stored in UTC, absolute time. You need to convert to and from UTC in the client/middleware as you see fit. Regards, Alex. Personal blog: http://blog.outerthoughts.com/ LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch - Time is the quality of nature that keeps events

Re: Date Field

2013-05-21 Thread Furkan KAMACI
Did you check here: http://lucene.apache.org/solr/4_3_0/solr-core/org/apache/solr/schema/DateField.html 2013/5/21 Benjamin Kern > Hi all, > > how can I set the time zone for a date field? > > > > > > Thanks > >

Date Field

2013-05-21 Thread Benjamin Kern
Hi all, how can I set the time zone for a date field? Thanks

Re: Error when trying to do Partial Document Update on multi-valued DATE field

2013-01-10 Thread Timothy Potter
Looks that way ... upgrading to 4.1 fixed the issue - thanks Erik. Cheers, Tim On Thu, Jan 10, 2013 at 1:10 PM, Erik Hatcher wrote: > Tim - > > You've likely been bitten by < > https://issues.apache.org/jira/browse/SOLR-4286>, which is now fixed and > will be in 4.1 coming up soon. > > E

Re: Error when trying to do Partial Document Update on multi-valued DATE field

2013-01-10 Thread Erik Hatcher
Tim - You've likely been bitten by , which is now fixed and will be in 4.1 coming up soon. Erik On Jan 10, 2013, at 15:03 , Timothy Potter wrote: > Hi, > > Using Solr 4.0, I'm sending a partial document update request (as JSON) and > it

Re: SolrJ | Add a date field to ContentStreamUpdateRequest

2012-12-30 Thread Yury Kats
On 12/30/2012 3:55 PM, uwe72 wrote: > but i can just add String values.i want to add Date objects?! You represent the Date as a String, in format Solr uses for dates: http://lucene.apache.org/solr/api-4_0_0-BETA/org/apache/solr/schema/DateField.html

Re: SolrJ | Add a date field to ContentStreamUpdateRequest

2012-12-30 Thread Yury Kats
On 12/30/2012 11:57 AM, uwe72 wrote: > Hi there, > > how can i add a date field to a pdf document? Same way you add the ID field, using literal parameter. > >ContentStreamUpdateRequest up = new > ContentStreamUpdateRequest("/update/extract"); >up.addF

SolrJ | Add a date field to ContentStreamUpdateRequest

2012-12-30 Thread uwe72
Hi there, how can i add a date field to a pdf document? ContentStreamUpdateRequest up = new ContentStreamUpdateRequest("/update/extract"); up.addFile(pdfFile, "application/octet-stream"); up.setParam("literal." + SolrConstants.ID, solrPDFId); Regards

Re: Grouping by a date field

2012-11-30 Thread sdanzig
clean n' easy solution, but there apparently isn't one. - Scott -- View this message in context: http://lucene.472066.n3.nabble.com/Grouping-by-a-date-field-tp4023318p4023563.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Grouping by a date field

2012-11-30 Thread Chris Hostetter
: What's the performance impact of doing this? the function approach should have slower query times compared to the "new field containing day" approach because it has to do the computation for every doc at query time, but it's less flexible because you have to know in advance you want to use i

Re: Grouping by a date field

2012-11-30 Thread Jack Krupansky
absolute requirement for all particular changes to how an app uses Solr. -- Jack Krupansky -Original Message- From: Amit Nithian Sent: Friday, November 30, 2012 12:04 AM To: solr-user@lucene.apache.org Subject: Re: Grouping by a date field What's the performance impact of doing

Re: Grouping by a date field

2012-11-29 Thread Amit Nithian
What's the performance impact of doing this? On Thu, Nov 29, 2012 at 7:54 PM, Jack Krupansky wrote: > Or group by a function query which is the date field converted to > milliseconds divided by the number of milliseconds in a day. > > Such as: > > q=*:*&group=tr

Re: Grouping by a date field

2012-11-29 Thread Jack Krupansky
Or group by a function query which is the date field converted to milliseconds divided by the number of milliseconds in a day. Such as: q=*:*&group=true&group.func=rint(div(ms(date_dt),mul(24,mul(60,mul(60,1000) -- Jack Krupansky -Original Message- From: Amit Nithi

Re: Grouping by a date field

2012-11-29 Thread Amit Nithian
ups. Advice please? > > - Scott > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Grouping-by-a-date-field-tp4023318.html > Sent from the Solr - User mailing list archive at Nabble.com. >

Grouping by a date field

2012-11-29 Thread sdanzig
onds with a group for every second. I'm able to easily use this field to create day-based facets, but not groups. Advice please? - Scott -- View this message in context: http://lucene.472066.n3.nabble.com/Grouping-by-a-date-field-tp4023318.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: How to boost date field while boosting a text field?

2012-09-25 Thread Erick Erickson
d&fl=date > > > How to merge 'title:("ipad")^2' to the above query? > > thanks > Srini > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/How-to-boost-date-field-while-boosting-a-text-field-tp4009455p4010189.html > Sent from the Solr - User mailing list archive at Nabble.com.

Re: How to boost date field while boosting a text field?

2012-09-25 Thread srinalluri
erge 'title:("ipad")^2' to the above query? thanks Srini -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-boost-date-field-while-boosting-a-text-field-tp4009455p4010189.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: How to boost date field while boosting a text field?

2012-09-21 Thread Chris Hostetter
: The following is the working query with more weight to title. I am using : default parser. But the published_date of the results of this query is not : in order. I want date is in order. your request seems to contradict itself -- you say the results are not in order because you want "date is i

Re: How to boost date field while boosting a text field?

2012-09-21 Thread Otis Gospodnetic
video AND (title:("obama budget")^2 OR > export_headline:("obama budget"))&fl=title,score,export_headline > > I want to give weight to date field also. I can't use 'sort' as I used the > '^2'. What are the changes needed to the above query >

How to boost date field while boosting a text field?

2012-09-21 Thread srinalluri
ot;))&fl=title,score,export_headline I want to give weight to date field also. I can't use 'sort' as I used the '^2'. What are the changes needed to the above query thanks Srini -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-boost-date-field-whi

Re: How to get Facet results for date field in groups

2012-09-15 Thread Erick Erickson
I assume you're talking about facets here. Use a series of facet queries, and use the "key" trick. See: http://wiki.apache.org/solr/SimpleFacetParameters#key_:_Changing_the_output_key Best Erick On Sat, Sep 15, 2012 at 4:56 AM, Anupam Bhattacharya wrote: > How to fetch results for a indexed fiel

How to get Facet results for date field in groups

2012-09-15 Thread Anupam Bhattacharya
How to fetch results for a indexed field of date format in the facet section as a group in the below format from SOLR ? Today's (10) Last 7 Days (20) Yesterday (30) Thursday (40) Wednesday (50) Tuesday (60) Monday (70) Sunday (80) last Week (90) Two Week Ago (100) Last Month (110) Two Months Ago (

Re: Sort by date field = outofmemory?

2012-07-14 Thread Lance Norskog
Sorting requires an array of 4-byte ints, one for each document. If the field is a number or date, this is the only overhead. 80M docs * 4 bytes = 320 mbytes for each sorted field. If it is something else like a string, Lucene also creates an array with one of every unique value. If your query res

Re: Sort by date field = outofmemory?

2012-07-12 Thread Erick Erickson
Bruno: You can also reduce your memory requirements by storing fewer unique values. All the _unique_ values for a field in the index are read in for sorting. People often store timestamps in milliseconds, which essentially means that every document has a unique value. Storing your timestamps in t

Re: Sort by date field = outofmemory?

2012-07-11 Thread Yury Kats
This solves the problem by allocating memory up front, instead of at some point later when JVM needs it. At that later point in time there may not be enough free memory left on the system to allocate. On 7/11/2012 11:04 AM, Michael Della Bitta wrote: > There is a school of thought that suggests yo

Re: Sort by date field = outofmemory?

2012-07-11 Thread Michael Della Bitta
There is a school of thought that suggests you should always set Xms and Xmx to the same thing if you expect your heap to hit Xms. This results in your process only needing to allocate the memory once, rather in a series of little allocations as the heap expands. I can't explain how this fixed you

Re: Sort by date field = outofmemory?

2012-07-11 Thread Bruno Mannina
Hi, some news this morning... I added -Xms1024m option and now it works?! no outofmemory ?! java -jar -Xms1024m -Xmx2048m start.jar Le 11/07/2012 09:55, Bruno Mannina a écrit : Hi Yury, Thanks for your anwer. ok for to increase memory but I have a problem with that, I have 8Go on my computer

Re: Sort by date field = outofmemory?

2012-07-11 Thread Bruno Mannina
Hi Yury, Thanks for your anwer. ok for to increase memory but I have a problem with that, I have 8Go on my computer but the JVM accepts only 2Go max with the option -Xmx is it normal? Thanks, Bruno Le 11/07/2012 03:42, Yury Kats a écrit : Sorting is a memory-intensive operation indeed. Not

Re: Sort by date field = outofmemory?

2012-07-10 Thread Yury Kats
Sorting is a memory-intensive operation indeed. Not sure what you are asking, but it may very well be that your only option is to give JVM more memory. On 7/10/2012 8:25 AM, Bruno Mannina wrote: > Dear Solr Users, > > Each time I try to do a request with &sort=pubdate+desc > > I get: > GRAVE

Re: Sort by date field = outofmemory?

2012-07-10 Thread Bruno Mannina
To complete my question: after having this error, some fields (not all) aren't reachable with the same error. Le 10/07/2012 14:25, Bruno Mannina a écrit : Dear Solr Users, Each time I try to do a request with &sort=pubdate+desc I get: GRAVE: java.lang.OutOfMemoryError: Java heap space

Sort by date field = outofmemory?

2012-07-10 Thread Bruno Mannina
Dear Solr Users, Each time I try to do a request with &sort=pubdate+desc I get: GRAVE: java.lang.OutOfMemoryError: Java heap space I use Solr3.6, I have around 80M docs and my request gets around 160 results. Actually for my test, i use jetty java -jar -Xmx2g start.jar PS: If I write 3

Re: query with DATE FIELD AND RANGE query using dismax

2012-05-15 Thread Jan Høydahl
09-22T22:40:30Z"]&qf=scanneddate > > How can I check for the date ranges using solr's dismax query handler > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/query-with-DATE-FIELD-AND-RANGE-query-using-dismax-tp3983819.html > Sent from the Solr - User mailing list archive at Nabble.com.

query with DATE FIELD AND RANGE query using dismax

2012-05-15 Thread ayyappan
0:30Z"]&qf=scanneddate How can I check for the date ranges using solr's dismax query handler -- View this message in context: http://lucene.472066.n3.nabble.com/query-with-DATE-FIELD-AND-RANGE-query-using-dismax-tp3983819.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Faceting on a date field multiple times

2012-05-04 Thread SUJIT PAL
ble to do a facet on a date field, but with different > ranges (in a single query). > > for example. I would like to show > > #documents by day for the last week - > #documents by week for the last couple of months > #documents by year for the last several years. > &g

Re: Faceting on a date field multiple times

2012-05-04 Thread Ian Holsman
Thanks Marc. On May 4, 2012, at 8:52 PM, Marc Sturlese wrote: > http://lucene.472066.n3.nabble.com/Multiple-Facet-Dates-td495480.html > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Faceting-on-a-date-field-multiple-times-tp3961282p3961865.html >

Re: Faceting on a date field multiple times

2012-05-04 Thread Marc Sturlese
http://lucene.472066.n3.nabble.com/Multiple-Facet-Dates-td495480.html -- View this message in context: http://lucene.472066.n3.nabble.com/Faceting-on-a-date-field-multiple-times-tp3961282p3961865.html Sent from the Solr - User mailing list archive at Nabble.com.

Faceting on a date field multiple times

2012-05-03 Thread Ian Holsman
Hi. I would like to be able to do a facet on a date field, but with different ranges (in a single query). for example. I would like to show #documents by day for the last week - #documents by week for the last couple of months #documents by year for the last several years. is there a way to

Re: Facet on same date field multiple times

2011-12-12 Thread Chris Hostetter
: Eventually the goal is to do different ranges on the same field. Month by : day. Day by hour. Year by week. Something to that effect. But I thought : I'd start simple to see if I could get the syntax right and what I have : above doesn't seem to work. ... : So it doesn't seem intere

Facet on same date field multiple times

2011-12-12 Thread dbashford
rks and I'm just arsing something up... -- View this message in context: http://lucene.472066.n3.nabble.com/Facet-on-same-date-field-multiple-times-tp3580449p3580449.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Can't use ms() function on non-numeric legacy date field

2011-09-27 Thread Chris Hostetter
: Try solr.TrieDateField instead and note the docs on the "ms" function, from the same wiki page you linked to... >> Arguments may be numerically indexed date fields such as TrieDate >> (recommended field type for dates since Solr 1.4), or date math >> (examples in SolrQuerySyntax) based on a

Re: Can't use ms() function on non-numeric legacy date field

2011-09-27 Thread Markus Jelsma
Try solr.TrieDateField instead On Tuesday 27 September 2011 15:53:30 Pranav Prakash wrote: > Hi, I had been trying to boost my recent documents, using what is described > here http://wiki.apache.org/solr/FunctionQuery#Date_Boosting > > My date field looks like > > omitNorms=

Can't use ms() function on non-numeric legacy date field

2011-09-27 Thread Pranav Prakash
Hi, I had been trying to boost my recent documents, using what is described here http://wiki.apache.org/solr/FunctionQuery#Date_Boosting My date field looks like However, upon trying to do ms(NOW, created_at) it shows the error Can't use ms() function on non-numeric legacy date

Re: Solr Indexing - Null Values in date field

2011-09-24 Thread Erick Erickson
e.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:391) >        at > org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:372) > > > Please help. > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Solr-Indexing-Null-Values-in-date-field-tp3355068p3358752.html > Sent from the Solr - User mailing list archive at Nabble.com. >

  1   2   >