Re: Raw query parameters

2014-04-28 Thread Shawn Heisey
On 4/28/2014 7:54 PM, Xavier Morera wrote: > Would anyone be so kind to explain what are the "Raw query parameters" > in Solr's admin UI. I can't find an explanation in either the reference > guide nor wiki nor web search. The query API supports a lot more parameters than are shown on the admin UI

Re: Delete fields from document using a wildcard

2014-04-28 Thread Alexandre Rafalovitch
Not out of the box, as far as I know. Custom UpdateRequestProcessor could possibly do some sort of expansion of the field name by verifying the actual schema. Not sure if API supports that level of flexibility. Or, for latest Solr, you can request the list of known field names via REST and do clie

Re: saving user actions on item in solr for later retrieval

2014-04-28 Thread Alexandre Rafalovitch
1. might be too expensive in terms of commits and performance of refreshing the index every time. 3. Have you looked at external fields, custom components, etc. For example: http://www.slideshare.net/lucenerevolution/potter-timothy-boosting-documents-in-solr http://lucene.472066.n3.nabble.com/Comb

Re: Selectively hiding SOLR facets.

2014-04-28 Thread atuldj.jadhav
Yes, but with my query *country:"USA" * it is returning me languages belonging to countries other than USA. Is there any way I can avoid such languages appearing in my facet filters? -- View this message in context: http://lucene.472066.n3.nabble.com/Selectively-hiding-SOLR-facets-tp4132770p

Raw query parameters

2014-04-28 Thread Xavier Morera
Hi, Would anyone be so kind to explain what are the "Raw query parameters" in Solr's admin UI. I can't find an explanation in either the reference guide nor wiki nor web search. [image: Inline image 1] A bit confused on what it actually is for [image: Inline image 3] Thanks in advance, Xavier -

Indexing an array of maps get transformed to a map

2014-04-28 Thread Jinsu Oh
Our team is upgrading to solr 4.7.0 and running into an issue with indexing an array of map objects in solr 4.7.0. I understand that it makes no sense to index an array of map objects to solr, but I want to figure out why certain error outputs are coming out of the solr box. So we have a document

Re: Issue with SpanQuery

2014-04-28 Thread Vijay Kokatnur
Adding positionIncrementGap="1" to the fields worked for me. I didn't re-index all the existing docs so it works for only future documents. On Mon, Apr 28, 2014 at 3:54 PM, Ahmet Arslan wrote: > > > Hi Vijay, > > It is a index time setting so yes solr restart and re-indexing is > required. So

Re: Issue with SpanQuery

2014-04-28 Thread Ahmet Arslan
Hi Vijay, It is a index time setting so yes solr restart and re-indexing is required. So A small test case would be handy On Tuesday, April 29, 2014 1:35 AM, Vijay Kokatnur wrote: Thanks Ahmet, I'll give that a try.  Do I need to re-index to add/update positionIncrementGap? On Mon, Apr

Re: Issue with SpanQuery

2014-04-28 Thread Ethan
I tried testing with positionIncrementGap but that didn't work. The values I passed for it were 0, 1, 4,100. Reindexing also didn't help. On Mon, Apr 28, 2014 at 3:34 PM, Vijay Kokatnur wrote: > Thanks Ahmet, I'll give that a try. Do I need to re-index to add/update > positionIncrementGap? >

Re: Issue with SpanQuery

2014-04-28 Thread Vijay Kokatnur
Thanks Ahmet, I'll give that a try. Do I need to re-index to add/update positionIncrementGap? On Mon, Apr 28, 2014 at 3:31 PM, Ahmet Arslan wrote: > Hi, > > I would add positionIncrementGap to fieldType definitions and experiment > with different values. 0, 1 and 100. > > > positionIncrementG

Re: Issue with SpanQuery

2014-04-28 Thread Ahmet Arslan
Hi, I would add positionIncrementGap to fieldType definitions and experiment with different values. 0, 1 and 100. Same with OrderLineType too On Tuesday, April 29, 2014 1:25 AM, Vijay Kokatnur wrote: Hey Ehmet, Here is the field def - On Mon, Apr 28, 2014 at 3:19 PM, Ahme

Re: Issue with SpanQuery

2014-04-28 Thread Vijay Kokatnur
Hey Ehmet, Here is the field def - On Mon, Apr 28, 2014 at 3:19 PM, Ahmet Arslan wrote: > Hi, > > Can you paste your field definition of BookingRecordId and OrderLineType? > It could be something related to positionIncrementGap. > > Ahmet > > > > On Tuesday, April 29, 2014 12:58 AM,

RE: how to write my first solr query

2014-04-28 Thread Evan Smith
Hello, Thank you! I will try out what you suggested and post back once I know more. yes given things like cat foo bar house foo bar foo bar I want to know when the term "foo bar" (but not the prefix cases I specify) exists in my documents. Thanks! Evan -- View this message in context: htt

Re: Issue with SpanQuery

2014-04-28 Thread Ahmet Arslan
Hi, Can you paste your field definition of BookingRecordId and OrderLineType? It could be something related to positionIncrementGap. Ahmet On Tuesday, April 29, 2014 12:58 AM, Ethan wrote: Facing the same problem!! I have noticed it works fine as long as you're looking up the first index pos

Re: How to get a list of currently executing queries?

2014-04-28 Thread Otis Gospodnetic
No, though one could write a custom SearchComponent, I imagine. Not terribly useful for most situations where queries typically run for only a few milliseconds, but Otis -- Performance Monitoring * Log Analytics * Search Analytics Solr & Elasticsearch Support * http://sematext.com/ On Thu,

Re: Issue with SpanQuery

2014-04-28 Thread Ethan
Facing the same problem!! I have noticed it works fine as long as you're looking up the first index position. Anyone faced similar problem before? On Mon, Apr 28, 2014 at 12:22 PM, Vijay Kokatnur wrote: > I have been working on SpanQuery for some time now to look up multivalued > fields and fou

RE: spellcheck.q and local parameters

2014-04-28 Thread Jeroen Steggink
Thanks James, I was afraid of that. The problem is that spellcheck.q Is not always provided by the users and therefore it gives wrong suggestions. I'll just turn off spellcheck by default. Cheers, Jeroen -Original Message- From: Dyer, James [mailto:james.d...@ingramcontent.com] Sent: m

RE: spellcheck.q and local parameters

2014-04-28 Thread Dyer, James
spellcheck.q is supposed to take a list of raw query terms, so what you're trying to do in your example won't work. What you should do instead is space-delimit the actual query terms that exist in "qq" and (nothing else) use that for your value of spellcheck.q . James Dyer Ingram Content Gro

RE: how to write my first solr query

2014-04-28 Thread Jeroen Steggink
Hi Evan, If I understand correctly, a document has to have at least one "foo bar" without having "cat" in front. A solution would be to use a combination of the ShingleFilterFactory and query for one occurences of "foo bar" using the termfreq function. https://cwiki.apache.org/confluence/displ

spellcheck.q and local parameters

2014-04-28 Thread Jeroen Steggink
Hi, I'm having some trouble using the spellcheck.q parameter. The user's query is defined in the qq parameter and q parameter contains several other parameters for boosting. I would like to use the qq parameter as a default for spellcheck.q. I tried several ways of adding the qq parameter in the

Issue with SpanQuery

2014-04-28 Thread Vijay Kokatnur
I have been working on SpanQuery for some time now to look up multivalued fields and found one more issue - Now if a document has following lookup fields among others "*BookingRecordId*": [ "100268421", "190131", "8263325" ], "*OrderLineType*": [ "13", "1", "11" ], Here is the query I construc

saving user actions on item in solr for later retrieval

2014-04-28 Thread nolim
Hi, We are using solr in production system for around ~500 users and we have around ~1 queries per day. Our user's search topics most of the time static and repeat themselves over time. We have in our system an option to specify "specific search subject" (we also call it "specific information

Re: Stemming not working with wildcard search

2014-04-28 Thread Geepalem
Hi Ahmet, Thanks for your prompt response! I have added filters which you have specified but still its not working. Below is field Query Analyzer http://localhost:8080/solr/master/select?q=page_title_t:*products* http://localhos

Re: zkCli zkhost parameter

2014-04-28 Thread Scott Stults
I did, but it looks like I mixed in the chroot too after every entry rather than once at the very end (thanks to David Smiley for catching that). I'll try again and update if it's still a problem. Thanks! -Scott On Sat, Apr 26, 2014 at 1:08 PM, Mark Miller wrote: > Have you tried a comma-sep

Re: Wildcard search not working with search term having special characters and digits

2014-04-28 Thread Geepalem
Thanks jack for prompt response! So is there any solution to make this scenario works? Or wildcard doesn't work with special characters and numerics? Thanks, G. Naresh Kumar -- View this message in context: http://lucene.472066.n3.nabble.com/Wildcard-search-not-working-with-search-term-havin

Re: how to write my first solr query

2014-04-28 Thread Evan Smith
Hello, Here is a better use case Documents A, B, C, and D A: "dear foo bar hello" B: "dear cat foo bar hello" C: "dear cat foo bar hello foo bar" D: "dear car foo bar" I have a dictionary of items outside of solr "foo bar" and "cat foo bar" And associated with each item is the set of "suffix's

Delete fields from document using a wildcard

2014-04-28 Thread Costi Muraru
Hi guys, Would be possible, using Atomic Updates in SOLR4, to remove all fields matching a pattern? For instance something like: 100 <*field name="*_name_i" update="set" null="true">* Or something similar to remove certain fields in all documents. Thanks, Costi

Re: SpanQuery with Boolean Queries

2014-04-28 Thread Vijay Kokatnur
Pretty neat. Thanks! On Fri, Apr 25, 2014 at 2:44 AM, Ahmet Arslan wrote: > Hi, > > I am not sure how OR clauses are executed. > > But after re-reading your mail, I think you can use SpanOrQuery (for your > q1) in your custom query parser plugin. > > val q2 = new SpanOrQuery( >

[ANNOUNCE] Apache Solr 4.8.0 released

2014-04-28 Thread Uwe Schindler
28 April 2014, Apache Solr™ 4.8.0 available The Lucene PMC is pleased to announce the release of Apache Solr 4.8.0 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, faceted s

Re: how to write my first solr query

2014-04-28 Thread Ahmet Arslan
Hi Evan, Confusing use case :) You don't want "foo bar" is prefixed with "cat" ? But you are ok with a document that has "cat foo bar" Isn't this contradiction? On Monday, April 28, 2014 6:26 PM, Evan Smith wrote: Hello, I would like to find all documents that have say "foo bar" with a

Re: Stemming not working with wildcard search

2014-04-28 Thread Ahmet Arslan
Hi Naresh, quotes are only meaningful when there are two or more terms. don't use quotes for products* and product*. As regarding stemming and wildcards, use following chain, and your wildcard searches will be happier. Ahmet On Monday, April 28, 2014 5:41 PM, Jack Krupansky wrote: Wild

how to write my first solr query

2014-04-28 Thread Evan Smith
Hello, I would like to find all documents that have say "foo bar" with a filter to remove any cases where "foo bar" is prefixed with things like "cat", "a", ... I am ok with a document that has "cat foo bar" and "foo bar", but if it only has "cat foo bar" then I don't want it while if it has "fo

Re: Stemming not working with wildcard search

2014-04-28 Thread Jack Krupansky
Wildcards and stemming are incompatible at query time - you need to manually stem the term before applying your wildcard. Wildcards are not supported in quoted phrases. They will be treated as punctuation, and ignored by the standard tokenizer or the word delimiter filter. -- Jack Krupansky

Re: Wildcard search not working with search term having special characters and digits

2014-04-28 Thread Jack Krupansky
Wildcard query only works for single terms. Any embedded special characters will cause a term to be split into multiple terms at index time. The use of a wildcard in a query term with embedded special characters will bypass normal analysis - you need to enter the term exactly as it would be anal

Re: Solr Cluster management having too many cores

2014-04-28 Thread Shawn Heisey
On 4/28/2014 5:05 AM, Mukesh Jha wrote: > Thanks Erik, > > Sounds about right. > > BTW how long can I keep adding collections i.e. can I keep 5/10 years data > like this? > > Also what do you think of bullet 2) of having collection specific > configurations in zookeeper? Regarding bullet 2, the

Re: Solr Cloud and Replication request handler

2014-04-28 Thread Amanjit Gill
Hello Shawn, Thanks for your reply, that's good news! All the best. 2014-04-28 15:28 GMT+02:00 Shawn Heisey : > On 4/28/2014 3:33 AM, Amanjit Gill wrote: > > Hi everybody, > > > > Considering a solr cloud configuration (4.6+) > > > > a) I am wondering if the solr replication handler always has

Re: Wildcard search not working with search term having special characters and digits

2014-04-28 Thread Geepalem
Can some one please help me with this as I am struck with this issue.. -- View this message in context: http://lucene.472066.n3.nabble.com/Wildcard-search-not-working-with-search-term-having-special-characters-and-digits-tp4133385p4133478.html Sent from the Solr - User mailing list archive at

Re: Stemming not working with wildcard search

2014-04-28 Thread Geepalem
Can some one please help me with this as I am struck with this issue.. -- View this message in context: http://lucene.472066.n3.nabble.com/Stemming-not-working-with-wildcard-search-tp4133382p4133477.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr Cloud and Replication request handler

2014-04-28 Thread Shawn Heisey
On 4/28/2014 3:33 AM, Amanjit Gill wrote: > Hi everybody, > > Considering a solr cloud configuration (4.6+) > > a) I am wondering if the solr replication handler always has to be > configured completely, aka by choosing one master, then setting the config > accordingly (enable, masterUrl) etc ...

Re: merge shards indexes

2014-04-28 Thread Dmitry Kan
Yes, according to this documentation: https://wiki.apache.org/solr/MergingSolrIndexes On Mon, Apr 28, 2014 at 12:14 PM, Gastone Penzo wrote: > Hi, > it's possible to merge 2 shards indexes into one? > > Thank you > > -- > *Gastone Penzo* > -- Dmitry Blog: http://dmitrykan.blogspot.com Twitte

Re: Solr Cluster management having too many cores

2014-04-28 Thread Mukesh Jha
Thanks Erik, Sounds about right. BTW how long can I keep adding collections i.e. can I keep 5/10 years data like this? Also what do you think of bullet 2) of having collection specific configurations in zookeeper? On Fri, Apr 25, 2014 at 11:44 PM, Erick Erickson wrote: > So you're talking abo

Solr Cloud and Replication request handler

2014-04-28 Thread Amanjit Gill
Hi everybody, Considering a solr cloud configuration (4.6+) a) I am wondering if the solr replication handler always has to be configured completely, aka by choosing one master, then setting the config accordingly (enable, masterUrl) etc ... Do we really need a replication master? solrconfig.xm

Re: Application of different stemmers / stopword lists within a single field

2014-04-28 Thread Manuel Le Normand
Why wouldn't you take advantage of your use case - the chars belong to different char classes. You can index this field to a single solr field (no copyField) and apply an analysis chain that includes both languages analysis - stopword, stemmers etc. As every filter should apply to its' specific la

merge shards indexes

2014-04-28 Thread Gastone Penzo
Hi, it's possible to merge 2 shards indexes into one? Thank you -- *Gastone Penzo*

Re: space issue in search results

2014-04-28 Thread Gora Mohanty
On 28 April 2014 12:42, PAVAN wrote: > > I have indexed title in the following way. > > honda cars in rajaji nagar > honda cars in rajajinagar. > > suppose if i search for > > honda cars in rajainagar (OR) > honda cars in rajaji nagar > > it has to display both the results. Please do not start mu

space issue in search results

2014-04-28 Thread PAVAN
I have indexed title in the following way. honda cars in rajaji nagar honda cars in rajajinagar. suppose if i search for honda cars in rajainagar (OR) honda cars in rajaji nagar it has to display both the results. Anybody help me how can we do this. -- View this message in context: