Re: update some fields vs replace the whole document

2013-03-10 Thread Upayavira
In terms of the impact upon the index, there is no difference, they do the same thing - mark the previous doc deleted and insert another. As jack says, maybe atomic updates are easier for you from an application perspective. Note Solr/lucene are heavily optimised towards reading - writing is a rel

How to combine Date range query with negation query

2013-03-10 Thread A Geek
Hi All, I'm trying to run a query against the following fields: and against For majority of the documents the author_location is default i.e. "unset" . I want to run a query where the author_location has got some value other than "unset" and the created_at field is greater a given t

Re: How to combine Date range query with negation query

2013-03-10 Thread Jack Krupansky
Although pure negative queries are supposed to work, there have been bugs in various releases, so make the query explicit: *:* -author_location:unset Do you actually use an explicit string of "unset" when adding documents? -- Jack Krupansky -Original Message- From: A Geek Sent: Sund

Re: Solr 4.x auto-increment/sequence/counter functionality.

2013-03-10 Thread mark12345
A slightly different approach. * I noticed that I can sort by the internal Lucene _docid_. -> http://wiki.apache.org/solr/CommonQueryParameters > You can sort by index id using sort=_docid_ asc or sort=_docid_ desc * I have also read the d

[ANN] vifun: a GUI to help visually tweak Solr scoring, release 0.6

2013-03-10 Thread xavier jmlucjav
Hi, I am releasing an new version (0.6) of vifun, a GUI to help visually tweak Solr scoring. Most relevant changes are: - support float values - add support for tie - synch both Current/Baseline scrollbars (if some checkbox is selected) - doubleclick in a doc: show side by side comparison of debug

Re: How to add shard in 4.2-snapshot

2013-03-10 Thread Jam Luo
I build indexes by EmbeddedSolrServer, then move them to the online system. The online system do not add new Documents. So the hashcode range is not important, I need add shard only. how do I customise it? thanks 2013/3/10 adfel70 > Mark, what's the current estimation for official 4.2 release

Re: How to add shard in 4.2-snapshot

2013-03-10 Thread Mark Miller
A vote is happening now - it will likely be early this week. - Mark On Mar 10, 2013, at 7:17 AM, adfel70 wrote: > Mark, what's the current estimation for official 4.2 release? > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/How-to-add-shard-in-4-2-snapshot

Re: Mark document as hidden

2013-03-10 Thread Erik Hatcher
Seems like that technique would work, as long as the file is saved and flushed before the actual commit occurs. Erik On Mar 8, 2013, at 12:17 , lboutros wrote: > I could create an UpdateRequestProcessorFactory that could update this file, > it seems to be better ? > > > > - > Jou

Re: Feeding Custom QueryParser with Nested Query

2013-03-10 Thread jimtronic
It seems like I could could accomplish this by following the JoinQParserPlugin logic. I can actually get pretty close using the join query, but I need to do some extra math in the middle. The difference in my case is that I need to access the id and the score. I *think* the logic would go somethin

optimal maxWarmingSearchers in solr cloud

2013-03-10 Thread jimtronic
The notes for maxWarmingSearchers in solrconfig.xml state: "Recommend values of 1-2 for read-only slaves, higher for masters w/o cache warming." Since solr cloud nodes could be both a leader and non-leader depending on the current state of the cloud, what would be the optimal setting here? Thank

Re: optimal maxWarmingSearchers in solr cloud

2013-03-10 Thread Timothy Potter
Sorry I'm answering your question with more questions, but this is an area of special interest for me too. It's tough to say an exact value as it depends on how frequently you do full "hard" commits and how much warming you do when you open a new searcher. Broadly speaking, you want it to be a sma

Re: Memory Guidance

2013-03-10 Thread Timothy Potter
Hi Jim, I'd venture to guess your Solr core is using MMapDirectory and if so, then the physical memory value is correct and nothing to worry about. The index is loaded into virtual memory using mem mapped I/O. The file descriptor count looks fine too, but when using MMapDirectory make sure your O

Custom update handler?

2013-03-10 Thread Jack Park
With 4.1, not in cloud configuration, I have a custom response handler chain which injects an additional handler for studying the documents as they come in. But, when I do partial updates on those documents, I don't want them to be studied again, so I created another version of the same chain, but