Re: Missing slf4j jar in solr 1.4.0 distribution?

2009-11-19 Thread Per Halvor Tryggeseth
Thank you! There is a nice wiki page for solrj 1.3, http://wiki.apache.org/solr/Solrj If someone have time and is competent it would have been nice to have a similar page for solrj4 where all these things and more is described. Per Halvor -Opprinnelig melding- Fra: Ryan McKinley

RE: Index-time field boosting not working?

2009-11-19 Thread Ian Smith
Hi Otis, thanks for replying, Well I'm pretty sure it was there (and documented) in the 1.3 era. Strangely, it is still accepted in the Eclipse HTML editor, even for attribute completion (if you can, try it). But if it is truly deprecated, we will have to reassess part of our system design :(

RE: HTMLStripCharFilterFactory does not replace #233;

2009-11-19 Thread Kundig, Andreas
It now works for me too. The problem was that tomcat was still working with an older version of the configuration. HTMLStripCharFilterFactory didn't even appear in analysis.jsp. Thank you for looking into this. Andréas -Original Message- From: Koji Sekiguchi

Control DIH from PHP

2009-11-19 Thread Pablo Ferrari
Hello! After been working in Solr documents updates using direct php code (using SolrClient class) I want to use the DIH (Data Import Handler) to update my documents. Any one knows how can I send commands to the DIH from php? Any idea or tutorial will be of great help because I'm not finding

Re: Control DIH from PHP

2009-11-19 Thread Pablo Ferrari
Most specificly, I'm looking to update only one document using it's Unique ID: I dont want the DIH to lookup the whole database because I already know the Unique ID that has changed. Pablo 2009/11/19 Pablo Ferrari pabs.ferr...@gmail.com Hello! After been working in Solr documents updates

nested queries

2009-11-19 Thread Andrea Campi
Hi, I'm trying to wrap my head around nested queries and I'm having some trouble figuring out how far can I go with them. I have to say documentation is still a bit sparse... :/ I'm trying to build a query that would search the same term(s) on different fields with different boosts, like:

Re: Solrj writes data to local directory

2009-11-19 Thread Mike
Stuart Grimshaw wrote: I have a Solr instance in a directory in 1 location on my hard drive, and set solr.solr.home to that location, when I open it, I can add documents and close the instance with no problem, but the data is written to a new directory solr/data in the current directory. Has

Re: nested queries

2009-11-19 Thread Grant Ingersoll
On Nov 19, 2009, at 7:02 AM, Andrea Campi wrote: Hi, I'm trying to wrap my head around nested queries and I'm having some trouble figuring out how far can I go with them. I have to say documentation is still a bit sparse... :/ I'm trying to build a query that would search the same

Re: specifying search depth?

2009-11-19 Thread Grant Ingersoll
On Nov 17, 2009, at 7:33 PM, mike.schultz wrote: I want to use the standard QueryComponent to run a query then sort a *limited number of the results* by some function query. So if my query returns 10,000 results, I'd like to calculate the function over only the top, say 100 of them, and

Re: Solrj writes data to local directory

2009-11-19 Thread Yonik Seeley
Looks like a very old undesirable config issue... http://search.lucidimagination.com/search/document/c5ae6fa490d0f59a I'll open a JIRA issue to track this. -Yonik http://www.lucidimagination.com On Thu, Nov 19, 2009 at 7:32 AM, Mike mpiluson...@comcast.net wrote: Stuart Grimshaw wrote: I

Using DirectSolrConnection with Solrj

2009-11-19 Thread dipti khullar
Hi Solr experts We are using Solrj in our application - - CommonsHttpSolrServer (superclass:SolrServer) We are planning to compare the performance results of SolrServer with DirectSolrConnection. 1. I couldn't find any such class (as SolrServer for HTTPrequests) which supports

Re: nested queries

2009-11-19 Thread Andrea Campi
Grant, Grant Ingersoll wrote: On Nov 19, 2009, at 7:02 AM, Andrea Campi wrote: To make things easier and more maintainable, I'd like to use nested queries for that; I'd like to be able to write: q={!boost b=$dateboost v=ftext:$terms^1000 OR

Re: Control DIH from PHP

2009-11-19 Thread Noble Paul നോബിള്‍ नोब्ळ्
you can pass the uniqueId as a param and use it in a sql query http://wiki.apache.org/solr/DataImportHandler#Accessing_request_parameters. --Noble On Thu, Nov 19, 2009 at 3:53 PM, Pablo Ferrari pabs.ferr...@gmail.com wrote: Most specificly, I'm looking to update only one document using it's

getting total index size last update date/time from query

2009-11-19 Thread Joel Nylund
Hi, Looking for total number of documents in my index and the last updated date/time of the index. Is there a way to get this through the standard query q=? if not, what is the best way to get this info from solr. thanks Joel

Problem with SolrJ driver for Solr 1.4

2009-11-19 Thread Asaf work
Hi, I'm using the SolrJ 1.4 client driver in a sharded Solr configuration and am experiencing 2 problems: 1) *The method SolrQuery.setIncludeScore(true)*: The current implementation of setIncludeScore(boolean) *adds *the value score to the FL parameter. This causes a problem when using the

RE: getting total index size last update date/time from query

2009-11-19 Thread Binkley, Peter
The Luke request handler (normally available at solr/admin/luke) will give you the document count (not size on the disk, though, if that's what you want) and last update and other info: lst name=index int name=numDocs14591/int int name=maxDoc14598/int int

index-time boost ... query

2009-11-19 Thread Anil Cherian
Hi, I am working on index-time boosting. I have a field named approval_dt. I have created that field in my SOLR xml to be uploaded, by sorting my query in ascending order of approval_dt and then increasing the boost for this field by 0.1 as i encounter new records from database. In my schema.xml

Recommendation system

2009-11-19 Thread Guangwei Yuan
Hello, We have an interesting and we guess common machine learning problem. Polyvore (the company I work for) has a few million products in its index. For each product we have the following information: - keywords extracted from title, description, tags - other meta information like colors,

Fwd: index-time boost ... query

2009-11-19 Thread Anil Cherian
Hi, when I attached a boost value even the following query is not working:- select?qt=dismaxboostq=horticultureversion=2.2start=0rows=10indent=onbf=recip(rord(approval_dt),1,1000,1000)^110.0fl=approval_dt,projname When I hadnt provided the boost value for the approval_dt the above was giving me

Re: Missing slf4j jar in solr 1.4.0 distribution?

2009-11-19 Thread Chris Hostetter
: Thank you! There is a nice wiki page for solrj 1.3, : http://wiki.apache.org/solr/Solrj If someone have time and is competent : it would have been nice to have a similar page for solrj4 where all : these things and more is described. You mean like this one...

Filtering / sorting results based on results from different core

2009-11-19 Thread Manepalli, Kalyan
Hello, In our current setup we have 2 cores. First core contains hotel content information and second core contains pricing information. I was looking for a way to combine this information at query time so that I can filter / sort results by price. Is there any way to do this. An

Re: nested queries

2009-11-19 Thread Jay Hill
I don't think your queries are actually nested queries. Nested queries key off of the magic field name _query_. You're right however that there is very little in the way of documentation of examples of nested queries. If you haven't seen this blog about them yet you might find this a helpful

Re: NPE when trying to view a specific document via Luke

2009-11-19 Thread Yonik Seeley
On Fri, Nov 13, 2009 at 8:05 PM, Chris Hostetter hossman_luc...@fucit.org wrote: : I tied to reproduce this in 1.4 using an index/configs created with 1.3, : but i got a *different* NPE when loading this url... I should have tried a simpler test ...  iget NPE's just trying to execute a simple

Re: NPE when trying to view a specific document via Luke

2009-11-19 Thread Chris Hostetter
: expected (not optimal... but an index/schema mismatch). If you're : using the 1.3 configs in 1.4 and getting an exception... that would be : very bad. Is that the case? as far as i can tell: yes. running 1.4 with the 1.3 example configs and an existing 1.3 index seems to be an instant

Re: Solrj writes data to local directory

2009-11-19 Thread Stuart Grimshaw
On Thu, Nov 19, 2009 at 1:41 PM, Yonik Seeley yo...@lucidimagination.com wrote: Looks like a very old undesirable config issue... http://search.lucidimagination.com/search/document/c5ae6fa490d0f59a I'll open a JIRA issue to track this. This was my problem also. Commenting out that element

Re: index-time boost ... query

2009-11-19 Thread Smiley, David W.
Anil, without delving into why your boosting isn't working as you expect, why don't you simply sort? Based on a message you sent to me directly (excerpted bellow), it seems you want sorting, not boosting. You could subsequently sort by score after approval_dt. ~ David Smiley Author:

Re: index-time boost ... query

2009-11-19 Thread Anil Cherian
Hi David, Thank you for the mail. It seems you are right.sorting might solve the issue as it is not giving any special weightage to any record other than its approval_dt is the latest one.. I think i am convinced for now. I am eagerly waiting for your book around thanks giving so taht i can

Re: index-time boost ... query

2009-11-19 Thread Anil Cherian
Hi David, I just now tried a sorting on the results and I got the records with latest approval_dt first. My question now is will index-time boosting method increase the response. ie will I be able to acheive the same thing i achieved using sorting much faster if i use index-time boosting. If

Filtering query results

2009-11-19 Thread aseem cheema
Hey Guys, I need to filter out some results based on who is performing the search. In other words, if a document is not accessible to a user performing search, I don't want it to be in the result set. What is the best/easiest way to do this reliable/securely in Solr? Thanks -- Aseem

logger in embedded solr

2009-11-19 Thread Harsch, Timothy J. (ARC-TI)[PEROT SYSTEMS]
Hi all, I have an J2EE application using embedded solr via solr4j. It seems the logging that SOLR produces has a mind of its own, and is not changeable via my log4j.properties. In fact I know this because I wired in a Log4J config listener in my web.xml and redirected all my logs to a custom

Min/Max for a numeric field?

2009-11-19 Thread Matthew Runo
Hello folks! We're trying to code a UI element which requires us to know both the minimum and maximum values for a given field - say, price. This seems like it has to be a solved problem, but we're just not sure of the best way to go about getting this data out of solr. We could facet on price

Re: Min/Max for a numeric field?

2009-11-19 Thread Koji Sekiguchi
Matthew Runo wrote: Hello folks! We're trying to code a UI element which requires us to know both the minimum and maximum values for a given field - say, price. This seems like it has to be a solved problem, but we're just not sure of the best way to go about getting this data out of solr. We

solr+jetty logging to syslog?

2009-11-19 Thread Steve Conover
The solution involves slf4j to log4j to syslog (at least, for solr), but I'm having some trouble stringing all the parts together. If anyone is doing this, would you mind posting how you use slf4j-log4j jar, what your log4j.properties looks like, what your java system properties settings are, and

Re: logger in embedded solr

2009-11-19 Thread Ryan McKinley
check: http://wiki.apache.org/solr/SolrLogging if you are using 1.4 you want to drop in the slf4j-log4j jar file and then it should read your log4j configs On Nov 19, 2009, at 2:15 PM, Harsch, Timothy J. (ARC-TI)[PEROT SYSTEMS] wrote: Hi all, I have an J2EE application using embedded