RE: multiple terms order in query - eDismax

2014-09-29 Thread Tomer Levi
Thanks Jack! Do you have any idea how can I select documents according to the appearance order of the terms? -Original Message- From: Jack Krupansky [mailto:j...@basetechnology.com] Sent: Sunday, September 28, 2014 1:27 PM To: solr-user@lucene.apache.org Subject: Re: multiple terms

Re: Flexible search field analyser/tokenizer configuration

2014-09-29 Thread Ahmet Arslan
Hi Peter, tokenizer class=solr.WhitespaceTokenizerFactory/ filter class=solr.LowerCaseFilterFactory/ filter class=solr.TruncateTokenFilterFactory prefixLength=3/ Above analyser should work for your examples. Just use AND operator or mm=100% Ahmet On Monday, September 29, 2014 5:51

solrJ bug related to solrJ 4.10 for having both incremental partial update and child document on the same solr document!

2014-09-29 Thread Ali Nazemian
Dear all, Hi, Right now I face with the strange problem related to solJ client: When I use only incremental partial update. The incremental partial update works fine. When I use only the add child documents. It works perfectly and the child documents added successfully. But when I have both of

Re: solrJ bug related to solrJ 4.10 for having both incremental partial update and child document on the same solr document!

2014-09-29 Thread Ali Nazemian
I also check both solr log and solr console. There is no error inside that, it seems that every thing is fine! But actually there is not any child document after executing process. On Mon, Sep 29, 2014 at 1:47 PM, Ali Nazemian alinazem...@gmail.com wrote: Dear all, Hi, Right now I face with

Re: multiple terms order in query - eDismax

2014-09-29 Thread Jack Krupansky
That's called phrase query - selecting documents based on the order of the terms. Just enclose the terms in quotes. -- Jack Krupansky -Original Message- From: Tomer Levi Sent: Monday, September 29, 2014 2:41 AM To: solr-user@lucene.apache.org Subject: RE: multiple terms order in

Re: Expunging Deletes

2014-09-29 Thread Shalin Shekhar Mangar
Yes, expungeDeletes=true will remove all deleted docs from the disk but it also requires merging all segments that have any deleted docs which, in your case, could mean a re-write of the entire index. So it'd be an expensive operation. Usually deletes are removed in the normal course of indexing

Overseer cannot talk to ZK

2014-09-29 Thread Ryan Cutter
Solr 4.7.2 went down during a period of little activity. Wondering if anyone has an idea about what's going on, thanks! INFO - 2014-09-26 15:35:00.152; org.apache.solr.cloud.DistributedQueue$LatchChildWatcher; LatchChildWatcher fired on path: null state: Disconnected type None then eventually:

Re: Expunging Deletes

2014-09-29 Thread Eric Katherman
Thanks for replying! Is there anything I could be doing to help prevent the 14GB collection with 700k deleted docs before it tries removing them and at that point running out of memory? Maybe just scheduled off-peak optimize calls with expungeDeletes? Or is there some other config option I

Re: Overseer cannot talk to ZK

2014-09-29 Thread Ryan Cutter
Sorry, I believe this can be disregarded. There were changes made to system time that likely caused this state. Apologies, Ryan On Mon, Sep 29, 2014 at 8:24 AM, Ryan Cutter ryancut...@gmail.com wrote: Solr 4.7.2 went down during a period of little activity. Wondering if anyone has an idea

Re: Flexible search field analyser/tokenizer configuration

2014-09-29 Thread PeterKerk
Hi Ahmet, Am I correct that his this is only avalable in Solr4.8? http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.TruncateTokenFilterFactory Also, I need to add your lines to both index and query analyzers? making my definition like so: fieldType name=searchtext

Solr Replication during Tomcat shutdown causes shutdown to hang/fail

2014-09-29 Thread Nicholas Violi
Hello, I have solr 4.10 running on tomcat 7. I'm doing replication from one master to about 10 slaves, with standard configuration: requestHandler name=/replication class=solr.ReplicationHandler lst name=master str name=enable${enable.master:false}/str

RE: Flexible search field analyser/tokenizer configuration

2014-09-29 Thread Markus Jelsma
Yes, it appeared in 4.8 but you could use PatternReplaceFilterFactory to simulate the same behavior. Markus -Original message- From:PeterKerk petervdk...@hotmail.com Sent: Monday 29th September 2014 21:08 To: solr-user@lucene.apache.org Subject: Re: Flexible search field

Solr query field (qf) conditional boost

2014-09-29 Thread Shamik Bandopadhyay
Hi, I'm trying to check if it's possible to include a conditional boosting in Solr qf field. For e.g. I've the following entry in qf parameter. str name=qftext^0.5 title^10.0 ProductLine^5/str What I'm looking is to add the productline boosting only for a given Author field, something in the

[ANNOUNCE] Apache Solr 4.10.1 released

2014-09-29 Thread Michael McCandless
September 2014, Apache Solr™ 4.10.1 available The Lucene PMC is pleased to announce the release of Apache Solr 4.10.1 Solr is the popular, blazing fast, open source NoSQL search platform from the Apache Lucene project. Its major features include powerful full-text search, hit highlighting,

Re: Expunging Deletes

2014-09-29 Thread Bryan Bende
You can try lowering the mergeFactor in solrconfig.xml to cause more merges to happen during normal indexing, which should result in more deleted documents being removed from the index, but there is a trade-off http://wiki.apache.org/solr/SolrPerformanceFactors#mergeFactor On Mon, Sep 29,

RE: Solr query field (qf) conditional boost

2014-09-29 Thread Markus Jelsma
Hi - you need to use function queries via the bf parameter. The function exists() and in some cases query() will do the conditional work, depending on your use case. Markus -Original message- From:Shamik Bandopadhyay sham...@gmail.com Sent: Monday 29th September 2014 21:30 To:

RE: Solr query field (qf) conditional boost

2014-09-29 Thread shamik
Thanks Markus. Well, I tried using a conditional if-else function, but it doesn't seem to work for boosting field. What I'm trying to do is boost ProductLine field by 5, if the result documents contain Author = 'Tom'. -- View this message in context:

RE: Solr query field (qf) conditional boost

2014-09-29 Thread Markus Jelsma
Hi - check the def() and if() functions, they can have embedded functions such as exists() and query(). You can use those to apply the main query the the productline field if author has some value. I cannot give a concrete example because i don't have an environment to fiddle around with. If

RE: Solr query field (qf) conditional boost

2014-09-29 Thread shamik
Thanks Markus, let me play around with the functions and see if I can achieve the results. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-query-field-qf-conditional-boost-tp4161783p4161803.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Flexible search field analyser/tokenizer configuration

2014-09-29 Thread Ahmet Arslan
Hi Peter, If you are using an older version, you can just copy paste its source code ( back port). And yes same analysis chain for both index and query. Thats just one configuration alternative that would work for your examples. It is possible to create others. You need to give it a try by

Re: Flexible search field analyser/tokenizer configuration

2014-09-29 Thread Alexandre Rafalovitch
The difference between TruncateTokenFilterFactory and EdgeNGramFilterFactory is that Truncate will generate only one token cut down to that size (3). While Edge... will have multiple tokens for the same word matching 3-letters, 4-letters, etc. You can specify the maximum. Usually, you use Edge...

How to query certain fields filtered by a condition

2014-09-29 Thread Shamik Bandopadhyay
Hi, Just wanted to understand if it's possible to limit a searchable field only to specific documents during query time. Following are my searchable fields. str name=qftext^0.5 title^10.0 country^1.0/str What I want is to make country a searchable field only for documents which contain

Re: How to query certain fields filtered by a condition

2014-09-29 Thread Jack Krupansky
You can perform boolean operations using parentheses. So you can OR a sequence of sub-queries, and each sub-query can be an AND of the desired search term and the constraining values for other fields. -- Jack Krupansky -Original Message- From: Shamik Bandopadhyay Sent: Monday,

Re: Solr Map Reduce Indexer Tool GoLive to SolrCloud with index on local file system

2014-09-29 Thread Nirmal
Tom Chen tomchen1000 at gmail.com writes: Hi, In the GoLive stage, the MRIT sends the MERGEINDEXES requests to Solr instances. The request has a indexDir parameter with a hdfs path to the index generated on HDFS, as shown in the MRIT log: 2014-07-02 15:03:55,123 DEBUG

Re: How to query certain fields filtered by a condition

2014-09-29 Thread shamik
Thanks Jack for your reply ... I'm sorry but I'm not too clear on the solution you proposed. Can you please provide a sample on what you suggested ? -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-query-certain-fields-filtered-by-a-condition-tp4161815p4161827.html

Re: boosting words from specific list

2014-09-29 Thread Koji Sekiguchi
Hi Ali, I don't think Solr has such function OOTB. One way I can think of is that you can implement UpdateRequestProcessor. In processAdd() method of the UpdateRequestProcessor, as you can read field values, you can calculate the total score and copy the total score to a field e.g. total_score.

Re: Flexible search field analyser/tokenizer configuration

2014-09-29 Thread PeterKerk
Ah, thanks! Sounds indeed like EdgeNGramFilterFactory is what I need. I actually upgraded to Solr 4.10.1 (from 4.3.1) while I was at it. I now have this: fieldType name=searchtext class=solr.TextField positionIncrementGap=100 analyzer type=index tokenizer

Way to determine which terms of an OR query matched each document

2014-09-29 Thread Paul Bellora
My application typically searches Solr by strictly ANDing all terms. However in some cases of too few results being returned I'd like to relax the query by switching to OR and setting an appropriate mm (min match) value. The problem is that I want it to be clear to the user which terms are missing

Re: Flexible search field analyser/tokenizer configuration

2014-09-29 Thread Alexandre Rafalovitch
That gets a bit messy depending on your search configuration, spaces and other factors. But in your specific question, you can actually DO the search and see what happens. Enable debug and you get more information that you think off. The other tools you may find useful to explain what's going on:

Re: Solr query field (qf) conditional boost

2014-09-29 Thread Aman Tandon
Hi, Correct me if i am unable to understand your need properly. *text^0.5 title^10.0 ProductLine^5* doc1 { ProductLine = abc, Author= rahul text= abcdef title = jai Ho } doc2 { ProductLine = xyz *Extra boost 10* Author = Tom, text = abcdef, title= Solr