Collapse with multiple fields

2009-10-22 Thread R. Tan
Hi, Is it possible to collapse the results from multiple fields? Rih

Re: Retrieve Matching Term

2009-10-22 Thread Chris Hostetter
: Is it possible to get the matching terms from your query for each document : returned without using highlighting. ... : I was told this is possible using Term Vectors. I have not been able to find I'm not 100% familiar with the TermVectorComponent, but as i understand it it gives you b

Re: Constant Score Queries and Function Queries

2009-10-22 Thread Chris Hostetter
: > Why wouldn't you just query the function directly and leave out the *:* ? : : *:* was just a quick example, I might have other constant score queries, but I : guess I probably could do a filter query plus the function query, too. I guess i don't udnerstand what your point was ... you mention

Re: Environment Timezone being considered when using SolrJ

2009-10-22 Thread Chris Hostetter
: When using SolrJ I've realized document dates are being modified according : to the environment UTC timezone. The timezone is being set in the inner : class ISO8601CanonicalDateFormat of DateField class. The dates aren't "modified" based on UTC, they are formated in UTC before being written to

Re: boostQParser and dismax

2009-10-22 Thread Yonik Seeley
On Thu, Oct 22, 2009 at 7:01 PM, Joe Calderon wrote: > hello *, i was just reading over the wiki function query page and > found this little gem for boosting recent docs thats much better than > what i was doing before > > recip(ms(NOW,mydatefield),3.16e-11,1,1) Thanks, it's pretty new (like 2 or

Re: Our new international sites powered by SOLR and wrapped by DOTNET are up and out! Yay!

2009-10-22 Thread William Pierce
Congratulations on thisWhat dotnet library did you use? We are also using solr in our windows2003/C# environment but currently simply use HTTP to query and the Dataimport handler to update the indices... - Bill -- From: "Robert Petersen" S

boostQParser and dismax

2009-10-22 Thread Joe Calderon
hello *, i was just reading over the wiki function query page and found this little gem for boosting recent docs thats much better than what i was doing before recip(ms(NOW,mydatefield),3.16e-11,1,1) my question is, at the bottom it says The most effective way to use such a boost is to multiply

Re: Too Many Boolean Clauses

2009-10-22 Thread Mark Miller
Hmm - yeah - coming at that a bit from the Lucene perspective - you wouldn't want it cached. For a ton of clauses like that, a filter can outperform a booleanquery on a large index in certain cases (an uncached filter). And doesn't suffer from having to mess with the max clause setting. Thats part

RE: Too Many Boolean Clauses

2009-10-22 Thread Giovanni Fernandez-Kincade
Is a filter really appropriate in this case? These types of condition would never get re-used - they would be unique to each search performed by users in our application. Is there any performance benefit to the filter aside from caching (which wouldn't do much for us anyway)? -Original

Re: Too Many Boolean Clauses

2009-10-22 Thread Mark Miller
Giovanni Fernandez-Kincade wrote: > Hi, > I'm trying to perform a search against an integer field with a ton of OR > statements for each of the unique values that I want to search for. I pasted > an example at the bottom of this email. Solr fires back the following error: > org.apache.lucene.quer

Too Many Boolean Clauses

2009-10-22 Thread Giovanni Fernandez-Kincade
Hi, I'm trying to perform a search against an integer field with a ton of OR statements for each of the unique values that I want to search for. I pasted an example at the bottom of this email. Solr fires back the following error: org.apache.lucene.queryParser.ParseException: Cannot parse .. ': t

Re: response status: error 400

2009-10-22 Thread Chris Hostetter
: I am pretty sure the url is no problem. The query syntax has a : problem, so it returns 400. I just want to grab that value. When Solr encounters an error, it returns the status code and error message w/o specifying any sort of error page. The servlet container (jetty, resin, tomcat, etc...)

Re: Filtered search for subset of ids

2009-10-22 Thread Chris Hostetter
: >/select?q=your+main+query&fq=id:(1+2+3+40+51+56) : ok, that's good to know.. I'll figure out how to force the API to get that, : at the moment accept RANGE and OR as filter query..but I'm not sure how it : process them.. : I'll check the methods .. (and maybe the OR is converted to + like

Environment Timezone being considered when using SolrJ

2009-10-22 Thread Michel Bottan
Hi, When using SolrJ I've realized document dates are being modified according to the environment UTC timezone. The timezone is being set in the inner class ISO8601CanonicalDateFormat of DateField class. I've read some posts where people say Solr should be most locale and culture agnostic. So, wh

Re: Constant Score Queries and Function Queries

2009-10-22 Thread Grant Ingersoll
On Oct 22, 2009, at 2:44 PM, Chris Hostetter wrote: : As a workaround, I can do: *:*^0 _val_:price_f, which gets rid of the query : norm factor. : : I realize I could override the similarity or use the workaround, but I was : just curious about what other people think of this. Why wouldn'

Re: Dismax: Impossible to search for a _phrase_ in tokenized and untokenized fields at the same time

2009-10-22 Thread Alex Baranov
hossman wrote: > > If you just want the full input string passed to the analyzer of each qf > field, then you just need to quote the entire string (or escape every > shitespace charter in the string with a backslash) so that the entire > input is considered one chunk -- but then you don't ge

Re: Filtered search for subset of ids

2009-10-22 Thread Andrea D'Ippolito
2009/10/22 Chris Hostetter > > : I need to submit a query to a subset of documents which id belong to an > : array of ids that I want to pass as parameter. > : > : for istance, something like: > : > : find_by_solr(query, id:[1,2,3,40,51,56]) > > i don't know anything baout the acts_as_solr API, b

Re: Filtered search for subset of ids

2009-10-22 Thread Chris Hostetter
: I need to submit a query to a subset of documents which id belong to an : array of ids that I want to pass as parameter. : : for istance, something like: : : find_by_solr(query, id:[1,2,3,40,51,56]) i don't know anything baout the acts_as_solr API, but you should be able to do this using a "

Re: Dismax: Impossible to search for a _phrase_ in tokenized and untokenized fields at the same time

2009-10-22 Thread Chris Hostetter
: Thank you for the the explanation. : : Let's say product_name_un is not untokenized, but it is tokenized with: : : and the user enters "blue car, big wheels". Which tokenizer are we talking about? the index or query? : with greater boost factor for product_name_un. So that if there are produ

Re: Constant Score Queries and Function Queries

2009-10-22 Thread Chris Hostetter
: As a workaround, I can do: *:*^0 _val_:price_f, which gets rid of the query : norm factor. : : I realize I could override the similarity or use the workaround, but I was : just curious about what other people think of this. Why wouldn't you just query the function directly and leave out the *:*

Searching over all Dynamic Fields: different things tested, multiple issues experienced

2009-10-22 Thread Frederick Giasson
Hi everybody, I have a prototype Solr schema defining a couple of dynamic fields pattern. With my usage of Solr, new dynamic fields can be added at any time. What I want to do is to be able to search over all fields of my schema (dynamic and not). Since the application layer doesn't know what

Re: Nested phrases with proximity in Solr

2009-10-22 Thread AHMET ARSLAN
> As far as I've been able to dig up, there is no way to use > nested phrases in > Solr, let alone with proximity. For instance ""a b" c > d"~10. I've seen a > special Surround Query Parser in Lucene that appears to > support this. > > Am I missing something? Any clues anybody? I had a need for n

Re: date searching?

2009-10-22 Thread Dan A. Dickey
On Thursday 22 October 2009 11:25:20 am AHMET ARSLAN wrote: > > Hi, > > I'm having a slight problem with date searching... > > I have a document indexed with a date type using the value > > "2007-07-07T00:00:00Z". > > However, when searching - the parser doesn't seem to like > > this. > > How shoul

Re: date searching?

2009-10-22 Thread AHMET ARSLAN
> Hi, > I'm having a slight problem with date searching... > I have a document indexed with a date type using the value > "2007-07-07T00:00:00Z". > However, when searching - the parser doesn't seem to like > this. > How should I be able to search for it? > > In the select query searching for > "Da

Nested phrases with proximity in Solr

2009-10-22 Thread Jaco
Hello, As far as I've been able to dig up, there is no way to use nested phrases in Solr, let alone with proximity. For instance ""a b" c d"~10. I've seen a special Surround Query Parser in Lucene that appears to support this. Am I missing something? Any clues anybody? Thanks in advance, bye, J

date searching?

2009-10-22 Thread Dan A. Dickey
Hi, I'm having a slight problem with date searching... I have a document indexed with a date type using the value "2007-07-07T00:00:00Z". However, when searching - the parser doesn't seem to like this. How should I be able to search for it? In the select query searching for "Date:2007-07-07T00:00

Re: response status: error 400

2009-10-22 Thread Elaine Li
Thanks. I am pretty sure the url is no problem. The query syntax has a problem, so it returns 400. I just want to grab that value. On Thu, Oct 22, 2009 at 4:50 AM, James liu wrote: > Are you sure the url is correct? > > > -- > regards > j.L ( I live in Shanghai, China) >

Re: is EmbeddedSolrServer thread safe ?

2009-10-22 Thread jfmelian
thanks - "Noble Paul നോബിള്‍ नोब्ळ्" a écrit : | yes | | On Thu, Oct 22, 2009 at 2:38 PM, wrote: | > at SolrJ wiki page : | http://wiki.apache.org/solr/Solrj#EmbeddedSolrServer | > | > "CommonsHttpSolrServer is thread-safe and if you are using the | following constructor, | > you *MUST* re

Re: Ram Index

2009-10-22 Thread Andrea D'Ippolito
2009/10/22 Erik Hatcher > There is a DirectoryFactory in Solr that could be used to make Lucene's > RAMDirectory. But then you'd have to reindex everything when restarting > Solr. Doesn't seem to make much practical sense to use it, not even for > performance reasons thanks to Lucene and Solr b

Re: Ram Index

2009-10-22 Thread Erik Hatcher
There is a DirectoryFactory in Solr that could be used to make Lucene's RAMDirectory. But then you'd have to reindex everything when restarting Solr. Doesn't seem to make much practical sense to use it, not even for performance reasons thanks to Lucene and Solr both caching what they need

Re: is EmbeddedSolrServer thread safe ?

2009-10-22 Thread Noble Paul നോബിള്‍ नोब्ळ्
yes On Thu, Oct 22, 2009 at 2:38 PM, wrote: > at SolrJ wiki page : http://wiki.apache.org/solr/Solrj#EmbeddedSolrServer > > "CommonsHttpSolrServer is thread-safe and if you are using the following > constructor, > you *MUST* re-use the same instance for all requests. ..." > > But is it the same

Ram Index

2009-10-22 Thread Andrea D'Ippolito
Does exit a corrispondence for the Lucene Ram Index in Solr? if yes, how can I use it? (do you think it fits even in acts_as_solr for Rails?) thanks Andrea

is EmbeddedSolrServer thread safe ?

2009-10-22 Thread jfmelian
at SolrJ wiki page : http://wiki.apache.org/solr/Solrj#EmbeddedSolrServer "CommonsHttpSolrServer is thread-safe and if you are using the following constructor, you *MUST* re-use the same instance for all requests. ..." But is it the same for EmbeddedSolrServer ? Best regards Jean-François

Re: response status: error 400

2009-10-22 Thread James liu
Are you sure the url is correct? -- regards j.L ( I live in Shanghai, China)