RE: sort issue in Solr

2012-01-04 Thread Robert Yu
Thanks Gora. Inspired by the link, I've solved case 1 by putting it as a exact match OR prefix match, such as "BAC" OR "BAC*". But I can not find solution for case 2 and case 3 below. Is there anyone can provide suggestions? Thanks, -Original Message- From: Gora Mohanty [mailto:g...@mimir

Re: SearchComponents and ShardResponse

2012-01-04 Thread Chris Hostetter
Hey Ken, : I feel like I must be missing something here... : : I'm working on a customized version of the SearchHandler, which supports : distributed searching in multiple *local* cores. ... : The SolrResponse field in ShardResponse is private, and the method to set it is package priva

Re: dih.last_index_time - exacty what time is this capturing?

2012-01-04 Thread astubbs
if you're unique id settings are correct, there won't be any redundancy as solr will not keep two copies with the same unique id. -- View this message in context: http://lucene.472066.n3.nabble.com/dih-last-index-time-exacty-what-time-is-this-capturing-tp499851p3633391.html Sent from the Solr - U

Re: PHP/Solr library

2012-01-04 Thread Stephen Powis
I see the same error from my php/curl script when my request times out. I believe you can up your timeouts both in php/curl and in your solr configs. On Wed, Jan 4, 2012 at 3:15 PM, Brian Lamb wrote: > Hi Param, > > That's the method I'm switching over from. It seems that script works > ineffici

Re: Checking which terms are already available in the index from a list of terms

2012-01-04 Thread reeuv
Thanks Hoss for the valuable advice. -- View this message in context: http://lucene.472066.n3.nabble.com/Checking-which-terms-are-already-available-in-the-index-from-a-list-of-terms-tp3631699p3633226.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Checking which terms are already available in the index from a list of terms

2012-01-04 Thread Chris Hostetter
: I have a list of terms that I want to check which of them are already : available in the index : : for e.g I have a : which indexes the terms. : : And I have list of words e.g. Honda, Civic, 2001. if the list you have is small relative hte total number of terms in the index, i would sugges

Re: Problem with facet.fields

2012-01-04 Thread Chris Hostetter
: If I put : q=*:*&facet=true&facet.field=lom.classification.ddc.id : => I have results for facet fields : If I put : q=*:*&facet=true&facet.field=lom.educational.context : => I have results for facet fields : : But if I put : q=*:*&facet=true&facet.field=lom.classification.ddc.id : &facet.field=

Re: PHP/Solr library

2012-01-04 Thread Brian Lamb
Hi Param, That's the method I'm switching over from. It seems that script works inefficiently with my set up as the data is spread out over multiple tables. I've considered creating a simple solr MySQL table just to maintain the solr data but I wanted to try out this PHP extension first. But than

Re: PHP/Solr library

2012-01-04 Thread Sethi, Parampreet
Hi Brian, Not exactly solution to your problem. But it may help, you can run Solr directly on top of your database, if your schema is simple manipulation of the database fields. This way you only need to update the database and solr index will be automatically updated with the latest data. I am us

PHP/Solr library

2012-01-04 Thread Brian Lamb
Hi all, I've been exploring http://www.php.net/manual/en/book.solr.php as a way to maintain my index. I already have a PHP script that I use to update a database so I was hoping to be able to update the database at the same time I am updating the index. However, I've been getting the following er

Re: Optional filter queries

2012-01-04 Thread Chris Hostetter
: -filterMinutes:[* TO *] should return documents that do not have a value assigned to that field. correct, but combining a negative filter with another filter can be confusing for people, you can't just use this... fq=filterMinutes:[* TO 50] -filterMinutes:[* TO *] ..because it finds hte s

Re: Checking which terms are already available in the index from a list of terms

2012-01-04 Thread lukai
There is some operator whose name is *OR*. Thanks, On 1/4/12, reeuv wrote: > I have a list of terms that I want to check which of them are already > available in the index > > for e.g I have a > which indexes the terms. > > And I have list of words e.g. Honda, Civic, 2001. > > I want to check w

Re: disable stemming on query parser.

2012-01-04 Thread lukai
What you mean is just disabling *stemming* in query phrase? If so, you can just specify different analysis behavior for query and index. In your *FieldType* configuration. If you just want to *partially* disable stemming, like some query do stemming, some dont. I recommend you to do pre-processing

Detecting query errors with SolrJ

2012-01-04 Thread Shawn Heisey
When doing Solr queries in a browser, it's pretty easy to see an HTTP error status and read the reason, but I would like to do the same thing in a deterministic way with SolrJ. Can anyone point me to examples that show how to retrieve the HTTP status code and the reason for the error? I would

RE: How to index documents in SOLR running in Window XP envronment

2012-01-04 Thread Dyer, James
I've successfully used the windows distribution of curl from http://curl.haxx.se/download.html for this purpose. This at least works when you put your xml in a text file and then use "curl http://host:port/solr/update -F stream.file=c:\filename.xml" I do not think I was ever able to get "-F s

Re: How to index documents in SOLR running in Window XP envronment

2012-01-04 Thread Sethi, Parampreet
Hi Divakar, If you need to do simple Solr document indexing and know java, You can write a java file along with data bean and use Solrj client for indexing. Here's one simple tutorial: http://www.params.me/2011/09/solrj-code-and-usage-example.html Please provide more details on what you are tryi

Re: How to index documents in SOLR running in Window XP envronment

2012-01-04 Thread Gora Mohanty
On Wed, Jan 4, 2012 at 10:57 PM, dsy99 wrote: > Dear all, > I am facing problem to index data to SOLR running in window XP environment. > Can any one suggest the method similar to "curl" used in Unix environment? I am sorry, but the above makes little sense, and gives people no basis to reply to

Re: Generic RemoveDuplicatesTokenFilter

2012-01-04 Thread astubbs
That's exactly what I need. I'm using phonetic tokens on ngrams, and there's lots of dupes. Can you submit it as a patch? What's the easiest way to get this into my solr? -- View this message in context: http://lucene.472066.n3.nabble.com/Generic-RemoveDuplicatesTokenFilter-tp3581656p3632499.html

RE: Solr, SQL Server's LIKE

2012-01-04 Thread Devon Baumgarten
Great suggestion! Thanks for keeping it simple for a complete Solr newbie. I'm going to go try this right now. Thanks! Devon Baumgarten -Original Message- From: Shawn Heisey [mailto:s...@elyograg.org] Sent: Monday, January 02, 2012 12:30 PM To: solr-user@lucene.apache.org Subject: Re:

Re: Problem with facet.fields

2012-01-04 Thread Sethi, Parampreet
Hi Marc, It could be because of "." in the field name. Try doing url encoding of "." and it should work. "But if I put : q=*:*&facet=true&facet.field=lom.classification.ddc.id &facet.field=lom.educational.context " -param On 1/4/12 10:27 AM, "Marc SCHNEIDER" wrote: >Hi, > >I'm quite sure I'm

Problem with facet.fields

2012-01-04 Thread Marc SCHNEIDER
Hi, I'm quite sure I'm missing something but I'm getting mad with this problem : If I put : q=*:*&facet=true&facet.field=lom.classification.ddc.id => I have results for facet fields If I put : q=*:*&facet=true&facet.field=lom.educational.context => I have results for facet fields But if I put :

Re: Query regarding solr custom sort order

2012-01-04 Thread Bernd Fehling
Hi, I suggest using the following fieldType for your field: Regards Bernd Am 04.01.2012 14:40, schrieb umaswayam: Hi, We want to sort our records based on some sequence which is like 1 2 3 4 5 6 7 8 9 10 11 12 13 14. I am using Websphere commerce to retrieve data using solr. When we a

Re: Query regarding solr custom sort order

2012-01-04 Thread Sethi, Parampreet
Hi Uma, Have you declared the type as integer for this field? In case, type is some form of String (text, string etc.) the sorting will happen lexicographically. -param On 1/4/12 8:40 AM, "umaswayam" wrote: >Hi, > >We want to sort our records based on some sequence which is like >1 2 3 4 5 6 7

Re: Query regarding solr custom sort order

2012-01-04 Thread Erik Hatcher
You're using a string field type, I imagine. Use a numeric field type instead. wc-search.xml? That's not a solr config file; must be something specific to your app. Erik On Jan 4, 2012, at 08:40 , umaswayam wrote: > Hi, > > We want to sort our records based on some sequence which i

Query regarding solr custom sort order

2012-01-04 Thread umaswayam
Hi, We want to sort our records based on some sequence which is like 1 2 3 4 5 6 7 8 9 10 11 12 13 14. I am using Websphere commerce to retrieve data using solr. When we are customizing the sort order/ option in wc-search.xml file then we are getting the sort order as 1 10 11 12 13 14 2 3 4

Re: Merging results of facet fields

2012-01-04 Thread Marc SCHNEIDER
Hi Andy and Erik, Thanks for for your answers it really helped me! Marc. On Wed, Jan 4, 2012 at 2:15 PM, Erik Hatcher wrote: > I'd recommend what Andy said, but if all you're interested in is a single > term combined, you can do > and you'll get the "merged" count. > >Erik > > On Jan

Do Hignlighting + proximity using surround query parser

2012-01-04 Thread reachpratik
Hello, I am not able to do highlighting with surround query parser on the returned results. I have tried the highlighting component but it does not return highlighted results. Any suggestions would help. -- View this message in context: http://lucene.472066.n3.nabble.com/Do-Hignlighting-proximi

Re: disable stemming on query parser.

2012-01-04 Thread meghana
Hi, Can i do like.. stemmed match should score a lower then non-stemmed (exact word) match ? Thanks Meghana -- View this message in context: http://lucene.472066.n3.nabble.com/disable-stemming-on-query-parser-tp3591420p3631826.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Merging results of facet fields

2012-01-04 Thread Erik Hatcher
I'd recommend what Andy said, but if all you're interested in is a single term combined, you can do and you'll get the "merged" count. Erik On Jan 4, 2012, at 07:51 , Andrew Ingram wrote: > Hi Marc, > > I'd probably have another field called "keywords" (or something) that I copy > a

Re: Merging results of facet fields

2012-01-04 Thread Andrew Ingram
Hi Marc, I'd probably have another field called "keywords" (or something) that I copy all the values into using copyfields, then just facet (and therefore filter) on that field instead. If there were a way to do it the way you're asking (there might be, I don't know), there's no guarantee that

Merging results of facet fields

2012-01-04 Thread Marc SCHNEIDER
Hello, I have two fields 'product' and 'tag'. Executing this query q=*:*&facet=true&facet.field=product&facet.field=tag gives me this result : 16 ... 7 ... Is there a way to group the results by value ie getting 23, regardless of the field names? Thanks in adva

Checking which terms are already available in the index from a list of terms

2012-01-04 Thread reeuv
I have a list of terms that I want to check which of them are already available in the index for e.g I have a which indexes the terms. And I have list of words e.g. Honda, Civic, 2001. I want to check which of these terms are already available in the index. Is there any good efficient way of d

Re: charFilter PatternReplaceCharFilterFactory and highlighting

2012-01-04 Thread darul
Well I guess may be a bug somewhere https://issues.apache.org/jira/browse/LUCENE-2208 -- View this message in context: http://lucene.472066.n3.nabble.com/charFilter-PatternReplaceCharFilterFactory-and-highlighting-tp3629699p3631571.html Sent from the Solr - User mailing list archive at Nabble.c

Re: charFilter PatternReplaceCharFilterFactory and highlighting

2012-01-04 Thread darul
Some of our path in indexed content may contains some words matching query, what we do not expect, that is why I have applied a CharFilter to skip it. Here is example of content before filtering : After applying regexp filter I have provided in my previous thread, it should look like, shouldn't

Re: Optional filter queries

2012-01-04 Thread Tanguy Moal
I think I misunderstood your issue, what I said applies only to sorting on that field. As soon as you perform a filter by querying a particuliar field, documents without a value in that field are filtered out. Christopher is right in is answer, and therefor by ORing both filters you should g

Re: Optional filter queries

2012-01-04 Thread Tanguy Moal
Hello, If the number stored is not in a string field, you will need solr >= 3.5 to perform what you want. Since solr 3.5 it's possible to set the attribute sortMissingLast or sortMissingFirst to true, within the field definition (an example is available in the schema.xml provided with solr 3