How to make SOLR manipulate the results?

2012-10-03 Thread Yash Ganthe
Hi, For an E-commerce website, we have stored the products as SOLR documents with the following fields and weights: Title:5 Description:4 For some products, we need to ensure that they appear in the top ten results even if their relevance in the above two fields does not qualify them for being in

Re: Solr 4 spatial queries, jts and polygons

2012-10-03 Thread Ere Maijala
Thanks David, this is very good news. :) Regards, Ere 1.10.2012 21.46, Smiley, David W. kirjoitti: Looks like this important bug fix is making it into 4.0 ! http://lucene.472066.n3.nabble.com/VOTE-release-4-0-take-two-tp4010808p4011255.html On Oct 1, 2012, at 10:26 AM, David Smiley (@MITRE.o

Re: Tokenizer for Optional Keywords

2012-10-03 Thread Chris Hostetter
: Doc A has keywords "Car Dealer", "Car Repair" : Doc B has keywords "Car Washing", "Car Clean" : : I have a "Optional Keywords" list that contains keywords like "Dealer". : : If my query is "Car Repair" should only match Doc A. : If my query is "Car", should match "Car Dealer", because "Dealer"

Re: ExtractingRequestHandler causes Out of Memory Error

2012-10-03 Thread Jan Høydahl
Hi, If you like, you can open a JIRA issue on this and provide as much info as possible. Someone can then look into (potential) memory optimization of this part of the code. -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com Solr Training - www.solrtraining.com 28. sep.

Re: Tokenizer for Optional Keywords

2012-10-03 Thread Otis Gospodnetic
Hi, Instead of searching for "Car Dealer" search for +"Car Dealer". This will match only Doc A. Otis -- Search Analytics - http://sematext.com/search-analytics/index.html Performance Monitoring - http://sematext.com/spm/index.html On Wed, Oct 3, 2012 at 10:09 AM, Nicholas Ding wrote: > Hi, >

Re: Get report of keywords searched.

2012-10-03 Thread Otis Gospodnetic
Hi Rajan, Unless you are super keen on implementing this yourself, let me point you to http://sematext.com/search-analytics/index.html which does what you described and a lot more. Alternatively, you could also try Google Analytics, which has some support for search, but not a lot. Otis -- Perfo

Re: OR query with multiple fields

2012-10-03 Thread Steve
On Oct 3, 2012, at 3:16 PM, Michael Della Bitta wrote: > Leading off with a negation does weird things. Try > > (*:* AND NOT categoryid:387602) OR mfrid:18678 > > Michael Della Bitta > Yep, works fine in this manner. So, the problem indeed is the leading negate, even with parentheses, it ig

Re: OR query with multiple fields

2012-10-03 Thread Jack Krupansky
Your query is really the same as mfrid:18678 -categoryid:3876021 Which means select all documents with that mfrid value and then exclude from that set all documents that have the specified categoryid. Maybe what you wanted is mfrid:18678 OR (*:* -categoryid:3876021) or q=(*:* !categoryid:3

Re: OR query with multiple fields

2012-10-03 Thread Michael Della Bitta
Leading off with a negation does weird things. Try (*:* AND NOT categoryid:387602) OR mfrid:18678 Michael Della Bitta Appinions 18 East 41st Street, 2nd Floor New York, NY 10017-6271 www.appinions.com Where Influence Isn’t a Game On Wed, Oct 3

OR query with multiple fields

2012-10-03 Thread Steve
If I search for q=!categoryid:3876021, solr correctly tells me there are two million plus hits. If I search for q=mfrid:18678, solr tell me there are 50,314 hits I want to combine those two results, so I try q=!categoryid:3876021 OR mfrid:18678 I would have expected two million plus results,

Re: Dismax parser. Where can I add field:value to the query?

2012-10-03 Thread Jack Krupansky
Add a filter query parameter, such as &fq=content_type:video . Or if you want the user to be able to add that in the search box, use edismax and the query string could be: "obama budget" AND content_type:video -- Jack Krupansky -Original Message- From: srinalluri Sent: Wednesday

Re: how to boost query term after tokenizer

2012-10-03 Thread Chris Hostetter
: if the query word is "ABCD",then after being tokenized it is "A" "BC" "D" , : l want to boost term "BC" ,so the query word is like this: "A BC^10 D" and : phrase query "ABCD" . all query words users typing in will be processed : like that automaticly. it's not really clear from your example how

Re: DIH import transaction issue

2012-10-03 Thread Steve Cerny
Does anyone have any ideas on the issue noted below? On Fri, Sep 28, 2012 at 11:00 AM, Steve wrote: > Hello, I have a simple Solr core setup to index 500 store locations with > their corresponding latitude / longitude. The core is setup, running, and > importing correctly however I'm seeing odd

Re: mapping values in fields

2012-10-03 Thread Chris Hostetter
: I don't know how to accomplish this off the top of my head : OOB, I'd guess your client would have to manage the : substitutions and then just index separate fields... an UpdateProcessor would proably be the best place to apply logic like this to completley add/replace the value of a mapped_fi

Re: multivalued filed question (FieldCache error)

2012-10-03 Thread Chris Hostetter
: Here is the stack trace what exactly does your fl param look like when you get this error? and what exactly are the field/fieldType declarations for each of the fields in your fl? Because if i'm reading this correctly, Solr thinks you are trying to include in the response the results of a

RE: Can SOLR Index UTF-16 Text

2012-10-03 Thread Fuad Efendi
Hi, my previous message was partially wrong: Please note that ANY IMAGINABLE SOLUTION will use encoding/decoding; and the real question is "where should it happen?" A. (Solr) Java Container is responsible for UTF-16 <-> Java String B. "Client" will do UTF-8 <->UTF-16 before submit

Dismax parser. Where can I add field:value to the query?

2012-10-03 Thread srinalluri
If I use dismax parser in the query, I knew I can't give field:value to the q. The following query works fine. /select/?defType=dismax&pf=title^2&q="obama%20budget"&qf=title But I want these results when content_type:video only. Where can I add content_type:video in the query, so that I can give

RE: Can SOLR Index UTF-16 Text

2012-10-03 Thread Fuad Efendi
Something is missing from the body of your Email... As I pointed in my previous message, "in general" Solr can index _everything_ (provided that you have Tokenizer for that); but, additionally to _indexing_ you need an HTTP-based _search_ which must understand UTF-16 (for instance) Easiest solutio

Re: Can SOLR Index UTF-16 Text

2012-10-03 Thread vybe3142
Thanks for all the responses. Problem partially solved (see below) 1. In a sense, my question is theoretical since the input to out SOLR server is (currently) UTF-8 files produced by a third party text extraction utility (not Tika). On the server side, we read and index the text via a custom data

Re: solr facet !tag on multiple columns

2012-10-03 Thread Yonik Seeley
On Wed, Oct 3, 2012 at 11:04 AM, lavesh wrote: > I know this is possible in Solr which do the grouping irrespective of one > values. i.e below line do the grouping based on column1 considering all > filters except the column column1 > > &facet.field={!ex=column1}column1 > > now i wana know can i d

RE: how to specify default sort fields in solr schema?

2012-10-03 Thread Markus Jelsma
No, not in the schema but in the solrconfig. Look for your request handler such as the default: you can add a default value for the sort parameter field desc -Original message- > From:A Geek > Sent: Wed 03-Oct-2012 16:53 > To: solr-user@lucene.apache.org > Subject: how to speci

Re: how to specify default sort fields in solr schema?

2012-10-03 Thread Michael Della Bitta
DK, myFieldName just inside the tag in schema.xml still works, but is considered deprecated. Otherwise it's specified using a df param in the definition of your search handler in solrconfig.xml: http://wiki.apache.org/solr/SearchHandler#df Michael Della Bitta --

how to specify default sort fields in solr schema?

2012-10-03 Thread A Geek
Hi all, Is there a way to specify the default sort fields in the solr schema in 3.6 or 4.0Beta? similar to the default search operator. Like, the default search operator can be set to "OR" and only when you want to override you pass it in the search URL as "AND". I have lots of fields related t

Tokenizer for Optional Keywords

2012-10-03 Thread Nicholas Ding
Hi, I'm working on a special requirement for matching. One thing is confusing me, I can't find a good way to solve it. Doc A has keywords "Car Dealer", "Car Repair" Doc B has keywords "Car Washing", "Car Clean" I have a "Optional Keywords" list that contains keywords like "Dealer". If my query

Re: Query among multiple cores

2012-10-03 Thread Nicholas Ding
Hi Otis, Could you give me an example about how to write a multiple core join? Thanks On Tue, Oct 2, 2012 at 11:13 PM, Otis Gospodnetic < otis.gospodne...@gmail.com> wrote: > Solr join does work across multiple cores, as long as they are in the same > JVM. > > Otis > -- > Search Analytics - htt

Re: multivalued filed question (FieldCache error)

2012-10-03 Thread giovanni.bricc...@banzai.it
Here is the stack trace Oct 3, 2012 3:07:38 PM org.apache.solr.common.SolrException log SEVERE: org.apache.solr.common.SolrException: can not use FieldCache on multivalued field: store_slug at org.apache.solr.schema.SchemaField.checkFieldCacheSource(SchemaField.java:174) at org.apach

Re: PHP client for a web application

2012-10-03 Thread Travis Low
Hi Esteban, A year ago, we tried to use the Apache Solr PECL extension but we were unable to install it, much less use it. We ended up using the Solr-PHP-client. It has worked perfectly for a year and we have had zero problems with it. We haven't tried using Solarium. Good luck! cheers, Trav

Re: solr binary protocol

2012-10-03 Thread Erick Erickson
http://wiki.apache.org/solr/Solrj See the section "Setting the request writer" for server.setRequestWriter(new BinaryRequestWriter()); Best Erick On Tue, Oct 2, 2012 at 4:10 AM, Radim Kolar wrote: > >> Have you looked javabin? >> http://wiki.apache.org/solr/javabin > > i checked that page:

Re: solr binary protocol

2012-10-03 Thread Radim Kolar
Have you looked javabin? http://wiki.apache.org/solr/javabin i checked that page: "binary format used to write out solr's response" so, its for solr response only, not for request sent to solr.

Re: Hierarchical Data

2012-10-03 Thread Erick Erickson
Maurizio: DIH is great for its intended purpose, but when things get complex I generally prefer writing something in SolrJ, it gives much finer-grained control over "special circumstances". Plus, you can see everything that happens. Here's a blog with a skeletal SolrJ program, you can just pull ou

Re: mapping values in fields

2012-10-03 Thread Otis Gospodnetic
Matej, During/right before indexing. What is stored is the original. Indexing ! = storing -- Performance Monitoring - http://sematext.com/spm On Oct 3, 2012 6:03 AM, "tech.vronk" wrote: > > Thank you Erick, that would explain the behaviour. > > But it leaves me with the question: > When are al

Re: Follow links in xml doc

2012-10-03 Thread Mikhail Khludnev
Billy, Have you tied http://wiki.apache.org/solr/DataImportHandler#ScriptTransformer ? On Wed, Oct 3, 2012 at 7:11 AM, Otis Gospodnetic wrote: > Hi Billy, > > There is nothing in Solr that will do XML parsing and link extraction, > so you'll need to do that part. Once you do that have a look a

Re: mapping values in fields

2012-10-03 Thread tech.vronk
Thank you Erick, that would explain the behaviour. But it leaves me with the question: When are all the analyzers/filters applied when not during indexing? I mean, if I define a lowercase filter on a field, if it is not applied on the input stream before storing so that I have a lowercased text

same results for select and More Like This(MLT) search

2012-10-03 Thread aniljayanti
Hi, My application is working fine with normal search (*/select?q=*) using SOLR. Normal Query URL: solr/select?q=title:lovely Now want to implement More Like This (MLT) in my application. Configured MLT in SOLr below like this. solrconfig.xml -- title

Get report of keywords searched.

2012-10-03 Thread Rajani Maski
Hi All, I am using solrJ. When there is search query hit, I am logging the url in a location and also it is getting logged into tomcat catalina logs. Now I wanted to implement a functionality of periodically(per week) analyzing search logs of solr and find out the keywords searched. Is there a