Re: Problems with synonyms

2009-03-31 Thread Mark Ferguson
It's okay to not use the SynonymFilter for querying and for indexing. In fact, you would really only want to use one or the other: either index all synonyms, or query for them, but not both. I have read that there are issues with multi-word synonyms and my guess is that this is where your problem

Querying for multi-word synonyms

2009-03-31 Thread Mark Ferguson
Hi list, I've been working the last couple days on some synonym functionality and I've been reading about the limitations regarding query-time multi-word synonyms. All recommended solutions that I've come across so far suggest using the SynonymFilter at index time rather than at query time.

Filter query for number of matches

2009-03-02 Thread Mark Ferguson
Hi, I am wondering if there is a way to set a filter on the frequency of a keyword match in a document. For example, if I search for the word cheerio I would like that word to appear at least x times in a field in order for the document to be returned. I know that Lucene internals already give

Near real-time search of user data

2009-02-19 Thread Mark Ferguson
Hi, I am trying to come up with a strategy for a solr setup in which a user's indexed data can be nearly immediately available to them for search. My current strategy (which is starting to cause problems) is as follows: - each user has their own personal index (core), which gets committed

Re: Near real-time search of user data

2009-02-19 Thread Mark Ferguson
- Original Message From: Mark Ferguson mark.a.fergu...@gmail.com To: solr-user@lucene.apache.org Sent: Friday, February 20, 2009 1:14:15 AM Subject: Near real-time search of user data Hi, I am trying to come up with a strategy for a solr setup in which a user's indexed data can

UpdateResponse status codes?

2009-02-09 Thread Mark Ferguson
Hello, I am wondering if the UpdateResponse status codes are documented somewhere? I haven't been able to find them. I know 0 is success.. Thanks, Mark

Searchers in single/multi-core environments

2009-02-06 Thread Mark Ferguson
Hello, My apologies if this topic has already been discussed but I haven't been able to find a lot of information in the wiki or mailing lists. I am looking for more information about how searchers work in different environments. Correct me if I'm mistaken, but my understanding is that in a

Re: Searchers in single/multi-core environments

2009-02-06 Thread Mark Ferguson
What I'm also curious about is how searchers are handled in a multi-core environment. Does the maxWarmSearchers argument apply to the entire set of cores, or to each individual core? It applied to one core unless ofcourse, you are sharing the solrconfig.xml with multiple cores. Also,

instanceDir value is incorrect in multicore environment

2009-02-04 Thread Mark Ferguson
Hello, I have a problem with setting the instanceDir property for the cores in solr.xml. When I set the value to be relative, it sets it as relative to the location from which I started the application, instead of relative to the solr.home property. I am using Tomcat and I am creating a context

Re: instanceDir value is incorrect in multicore environment

2009-02-04 Thread Mark Ferguson
this is probably just something I screwed up, so feel free to ignore this email. Mark On Wed, Feb 4, 2009 at 6:25 PM, Mark Ferguson mark.a.fergu...@gmail.comwrote: Hello, I have a problem with setting the instanceDir property for the cores in solr.xml. When I set the value to be relative, it sets

solr.core.name property not available on core creation

2009-01-26 Thread Mark Ferguson
Hi, I am trying to set up a multi-core environment in which I share a single conf folder. I am following the instructions described in this thread: http://www.mail-archive.com/solr-user@lucene.apache.org/msg16954.html In solrconfig.xml, I am setting dataDir to /srv/solr/cores/data/${

Re: solr.core.name property not available on core creation

2009-01-26 Thread Mark Ferguson
: This is a known issue. I'll try to give a patch soon. https://issues.apache.org/jira/browse/SOLR-883 On Mon, Jan 26, 2009 at 11:59 PM, Mark Ferguson mark.a.fergu...@gmail.comwrote: Hi, I am trying to set up a multi-core environment in which I share a single conf folder. I am

Setting dataDir in multicore environment

2009-01-26 Thread Mark Ferguson
Hi, In my solr.xml file, I am trying to set the dataDir property the way it is described in the CoreAdmin page on the wiki: core name='p11' instanceDir='./' property name=dataDir value=./data/p11 / /core However, the property is being completed ignored. It is using whatever I have set in the

Unable to choose request handler

2009-01-06 Thread Mark Ferguson
Hi, In my solrconfig.xml file there are two request handlers configured: one uses defType=dismax, and the other doesn't. However, it seems that when the dismax request handler is set as my default, I have no way of using the standard request handler . Here is the relevant part of my

Re: Unable to choose request handler

2009-01-06 Thread Mark Ferguson
handler configuration. On Tue, Jan 6, 2009 at 2:57 PM, Mark Ferguson mark.a.fergu...@gmail.comwrote: Hi, In my solrconfig.xml file there are two request handlers configured: one uses defType=dismax, and the other doesn't. However, it seems that when the dismax request handler is set as my default

Re: Unable to choose request handler

2009-01-06 Thread Mark Ferguson
no results when I specify a field). Can someone try reproducing this using the configuration I specified in my first post? Sorry again for being confusing, I got sidetracked by the caching issue. Mark On Tue, Jan 6, 2009 at 3:01 PM, Mark Ferguson mark.a.fergu...@gmail.comwrote: It seems

Re: Unable to choose request handler

2009-01-06 Thread Mark Ferguson
for the fix. Mark On Tue, Jan 6, 2009 at 3:40 PM, Yonik Seeley ysee...@gmail.com wrote: On Tue, Jan 6, 2009 at 5:01 PM, Mark Ferguson mark.a.fergu...@gmail.com wrote: It seems that the problem is related to the defType parameter. When I specify defType=, it uses the correct request handler

Re: Dismax query parser with different field classes

2009-01-02 Thread Mark Ferguson
Hello, It looks like a boost query will accomplish what I am looking for quite nicely. Mark On Wed, Dec 31, 2008 at 5:29 PM, Mark Ferguson mark.a.fergu...@gmail.comwrote: Hello, I have a set of documents in which I have different classes of fields that I would like to search separately

Re: Dismax query parser with different field classes

2009-01-02 Thread Mark Ferguson
, even if there are no keyword matches. I also want all documents with keyword matches to be returned, even when the user_id doesn't match, so I can't just switch the query and the boost query. Any ideas? Thanks for your time. Mark On Fri, Jan 2, 2009 at 2:33 PM, Mark Ferguson mark.a.fergu

Dismax query parser with different field classes

2008-12-31 Thread Mark Ferguson
can specify which fields correspond to which sets of keywords. Has anything like this been tackled before? If not, can someone help point me in the right direction for how I would build this myself? Thanks very much for your time. Regards, Mark Ferguson

Re: Solrj: Getting response attributes from QueryResponse

2008-12-19 Thread Mark Ferguson
/solr/client/solrj/response/QueryResponse.html#getResults%28%29 returns a SolrDocumentList http://lucene.apache.org/solr/api/org/apache/solr/common/SolrDocumentList.html which has that information On Fri, Dec 19, 2008 at 2:22 PM, Mark Ferguson mark.a.fergu...@gmail.com wrote: Hello, I

Re: Some solrconfig.xml attributes being ignored

2008-12-16 Thread Mark Ferguson
SolrHighlighter is the component that uses that parameter. So yes, it must be specified at the request handler level, not the fragmenter configuration. Erik On Dec 15, 2008, at 7:35 PM, Mark Ferguson wrote: It seems like maybe the fragmenter parameters just don't get displayed

Some solrconfig.xml attributes being ignored

2008-12-15 Thread Mark Ferguson
ignored as well. Thanks, Mark Ferguson

Re: Using Regex fragmenter to extract paragraphs

2008-12-15 Thread Mark Ferguson
you escape the question mark at the end too? On Fri, Dec 12, 2008 at 6:22 PM, Mark Ferguson mark.a.fergu...@gmail.com wrote: Someone helped me with the regex and pointed out a couple mistakes, most notably the extra quantifier in .*{400,600}. My new regex is this: \w.{400,600

Re: Some solrconfig.xml attributes being ignored

2008-12-15 Thread Mark Ferguson
On Mon, Dec 15, 2008 at 4:23 PM, Yonik Seeley ysee...@gmail.com wrote: Try adding echoParams=all to your query to verify the params that the solr request handler is getting. -Yonik On Mon, Dec 15, 2008 at 6:10 PM, Mark Ferguson mark.a.fergu...@gmail.com wrote: Hello, In my

Re: Some solrconfig.xml attributes being ignored

2008-12-15 Thread Mark Ferguson
On Mon, Dec 15, 2008 at 5:08 PM, Mark Ferguson mark.a.fergu...@gmail.comwrote: Thanks for this tip, it's very helpful. Indeed, it looks like none of the highlighting parameters are being included. It's using the correct request handler and hl is set to true, but none of the highlighting parameters

Using Regex fragmenter to extract paragraphs

2008-12-12 Thread Mark Ferguson
the gap fragmenter. In the above result I don't see any reason why it shouldn't have stripped out the preceding period and the last two words, there is plenty of room in the slop and in the regex pattern. Please help me figure out what I'm doing wrong... Thanks a lot, Mark Ferguson

Re: Using Regex fragmenter to extract paragraphs

2008-12-12 Thread Mark Ferguson
with punctuation. Any ideas would else could be wrong? Mark On Fri, Dec 12, 2008 at 2:37 PM, Mark Ferguson mark.a.fergu...@gmail.comwrote: Hello, I am trying to use the regex fragmenter and am having a hard time getting the results I want. I am trying to get fragments that start on a word character

Format of highlighted fields in query response

2008-12-11 Thread Mark Ferguson
=urlmd501598a6e06190bd8b05c8b03f51233a1/str /doc The reason I would prefer this second response format is because I don't need the first field, and it greatly simplifies my call to QueryResponse.getBeans() in SolrJ, as it will fill in everything I need in one call. Thanks very much, Mark Ferguson