Re: Details about MLT features

2011-07-09 Thread Koji Sekiguchi
(11/07/09 22:55), Marcus Paradies wrote: (1) Is there a way to see the similarity value in the response? Try debugQuery=on with MLT. (2) Can the MLT be used in the distributed search mode? Not yet. There is an open issue https://issues.apache.org/jira/browse/SOLR-788 (3) How can I retriev

Re: Join and Range Queries

2011-07-09 Thread Yonik Seeley
On Sat, Jul 9, 2011 at 8:04 PM, Lance Norskog wrote: > Does the Join feature work with Range queries? Not in any generic manner - joins are based on exact matches of indexed tokens only. But if you wanted something specific enough like same year, then you could index that year for each document a

Join and Range Queries

2011-07-09 Thread Lance Norskog
Does the Join feature work with Range queries? Given a time series of events stored as documents with time ranges, is it possible to do a search that finds certain events, and then add other documents whose time ranges overlap? -- Lance Norskog goks...@gmail.com

Re: Local Search – Rank results by businesses density

2011-07-09 Thread Lance Norskog
Voting precinct maps are a good proxy for this. US voting precincts tend to have similar numbers of voters, and so the number of retail businesses should also be of similar size. Precinct maps shrink the closer to downtown. On Fri, Jul 8, 2011 at 5:38 PM, SR wrote: > Hi there, > > For local busin

Re: Solr sentiment analysis

2011-07-09 Thread Lance Norskog
There is much more to learn about sentiment analysis than about Solr. I suggest getting one of these toolkits yourself, write some code, and make some charts. Classification is a two-part process: first make a large dataset of "positive" & "negative" text and train a model to understand the differ

Solr mlt, ContentStream and mlt.fl

2011-07-09 Thread kare...@gmail.com
Hi, I have recently upgraded to latest Solr4, rewrote the config files and recreated the index. However now I am having trouble with the MLT handler and I am not sure whether this is by design or a mistake I am doing. If I am using MLT on indexed documents, everything works as expected, I can se

Re: Query Rewrite

2011-07-09 Thread Jamie Johnson
Taking a closer look at this it seems as if the DisjunctionMaxQueryParser supports doing multiple aliases and generating multiple queries, I didn't see this same capability in the ExtendedDismaxQParser, am I just missing it? If this capability were there (and exposed via config options) this would

Re: Query Rewrite

2011-07-09 Thread Jamie Johnson
I do use solr over HTTP. I'm not familiar with Nginx or it's URL rewrite capabilities. Would this be easier to rewrite a complex query using this then a custom query parser? On Sat, Jul 9, 2011 at 2:07 PM, Markus Jelsma wrote: > If you use Solr over HTTP, then why don't you use URL rewriting? N

Re: Query Rewrite

2011-07-09 Thread Markus Jelsma
If you use Solr over HTTP, then why don't you use URL rewriting? Nginx has very powerful rewrite features and is capable of rewriting parts of the URL, no need to write and compile and deploy code. > My organization is considering a few different approaches for indexing > vs query rewrite and I'

Re: Query Rewrite

2011-07-09 Thread Jamie Johnson
Also, I'm not sure if it matters or not but I'm using the edismax query parser now, and don't wan to lose that functionality. Really what I'd like is a way to configure the edismax parser so that it would work on more than just the default field. So for instance if the user specified first_name:b

Re: Query Rewrite

2011-07-09 Thread Jamie Johnson
If I did that how would I configure solr to use the modified query parser? On Sat, Jul 9, 2011 at 11:39 AM, Dmitry Kan wrote: > you can try extending LuceneQParser. In its createParser method > (lucene 2.9.3 and solr 1.4) you can analyze the input query in the > param q and modify it accordingly.

DelimitedPayloadTokenFilter and Highlighter

2011-07-09 Thread Hannes Korte
Hi, I'm trying to use the DelimitedPayloadTokenFilter for a field, which I want to be highlighted. Unfortunately, the resulting snippets contain the original payload strings, e.g. "token|0.5". Is there a way to clean the stored string, which is used by the highlighter? Thanks in advance! Han

Re: Query Rewrite

2011-07-09 Thread Dmitry Kan
you can try extending LuceneQParser. In its createParser method (lucene 2.9.3 and solr 1.4) you can analyze the input query in the param q and modify it accordingly. On 7/9/11, Jamie Johnson wrote: > My organization is considering a few different approaches for indexing > vs query rewrite and I'm

Implement Efficient Personalized Search

2011-07-09 Thread Yifu Diao
Hi, I am using Django-Haystack which connects Django with Solr. I have a model called Item which is about webpages. I want to enable personalized search so that users can search only the items they have shared. I solved the problem like this: sqs = searchqueryset.auto_query(query).filter(primary_k

Re: What's the fq= syntax for NumericRangeFilter?

2011-07-09 Thread Yonik Seeley
Something is wrong with your indexing. Is "wc" an indexed field? If not, change it so it is, then re-index your data. If so, I'd recommend starting with the example data and filter for something like popularity:[6 TO 10] to convince yourself it works, then figuring out what you did differently in

Re: What's the fq= syntax for NumericRangeFilter?

2011-07-09 Thread Gabriele Kahlout
http://localhost:8080/solr/select?indent=on&version=2.2&q=*%3A** &fq=wc%3A%5B255+TO+257%5D* &start=0&rows=10&fl=*%2Cscore&qt=&wt=xml&explainOther=&hl.fl= The toString of the request: {explainOther=&fl=*,score&indent=on&start=0&q=*:*&hl.fl=&qt=&wt=xml&fq=wc:[255+TO+257]&rows=1&version=2.2} Eve

Re: Exception when using result grouping and sorting by geodist() with Solr 3.3

2011-07-09 Thread Thomas Heigl
Hi Yonik, I just created a JIRA issue: https://issues.apache.org/jira/browse/SOLR-2642 Thomas On Fri, Jul 8, 2011 at 4:00 PM, Yonik Seeley wrote: > On Fri, Jul 8, 2011 at 4:11 AM, Thomas Heigl wrote: > > How should I proceed with this problem? Should I create a JIRA issue or > > should I cross

Details about MLT features

2011-07-09 Thread Marcus Paradies
Hi Folks I'm using the MLT feature to find similar documents to a given input document. Documents in the index have a field title and a field description (like an abstract). The input document contains only a title of a document and is passed to the MLT via content streaming. Now there are a coup

Re: What's the fq= syntax for NumericRangeFilter?

2011-07-09 Thread Ahmet Arslan
> I don't get it to work! > > If I specify no fq I get the first result with name="wc">256 > > With wc:[255 TO 257] (fq=wc%3A%5B255+TO+257%5D) nothing > comes out. If you give us the Full URL you are using, it can be helpful. Correct syntax is &fq=wc:[255 TO 257] You can use more that fq in a

Re: What's the fq= syntax for NumericRangeFilter?

2011-07-09 Thread Gabriele Kahlout
I don't get it to work! If I specify no fq I get the first result with 256 With wc:[255 TO 257] (fq=wc%3A%5B255+TO+257%5D) nothing comes out. On Sat, Jul 9, 2011 at 12:29 PM, Markus Jelsma wrote: > Hu? It's describe in the link Ahmet's given you. > > > I'm trying to filter a query by the value

Re: What's the fq= syntax for NumericRangeFilter?

2011-07-09 Thread Markus Jelsma
Hu? It's describe in the link Ahmet's given you. > I'm trying to filter a query by the value of a numeric field. I can do it > in Java as follows, but I don't know how to do it with the query syntax, > and I found no documentation of it. > > @Test > public void testFqWc() throws Exception { >

What's the fq= syntax for NumericRangeFilter?

2011-07-09 Thread Gabriele Kahlout
I'm trying to filter a query by the value of a numeric field. I can do it in Java as follows, but I don't know how to do it with the query syntax, and I found no documentation of it. @Test public void testFqWc() throws Exception { IndexSearcher searcher = wc(); *Filter wc3 = Nu

Can I delete the stored value?

2011-07-09 Thread Gabriele Kahlout
I've stored the contents of some pages I no longer need. How can I now delete the stored content without re-crawling the pages (i.e. using updateDocument ). I cannot just remove the field, since I still want the field to be indexed, I just don't want to store something with it. My understanding is

Error using Custom Functions for DIH

2011-07-09 Thread Aviraj Chavan
Hi, I am trying to use DIH custom function by referring http://wiki.apache.org/solr/DIHCustomFunctions, I have prepared jar file containing my custom class and placed it in solr lib directory. For Full-import command, I am getting "Full Import failed:java.lang.NoClassDefFoundError: org/apache