SpellCheckComponent issue

2011-05-05 Thread Siddharth Powar
Hi,

(Sorry, emailing again because the last post was not posted...)

I have been using using SolrSpellCheckcomponent. One of my requirements is
that if a user types something like "add", solr would return "adidas". To
get something like this, I used EdgeNGramsFilterFactory and applied it to
the fields that I am indexing. So for adidas I will have something like "a",
"ad", "adi", "adid"... Correct me if I'm wrong, shouldnt the distance
algorithm used internally, match adidas with this approach?


Thanks,
Sid


Solr SpellcheckComponent issue

2011-05-04 Thread Siddharth Powar
Hi,

I have been using using SolrSpellCheckcomponent. One of my requirements is
that if a user types something like "add", solr would return "adidas". To
get something like this, I used EdgeNGramsFilterFactory and applied it to
the fields that I am indexing. So for adidas I will have something like "a",
"ad", "adi", "adid"... Correct me if I'm wrong, shouldnt the distance
algorithm used internally, match adidas with this approach?


Thanks,
Sid


Re: Encoding issue on synonyms.txt

2011-04-07 Thread Siddharth Powar
Hey Robert,

Thanks for the quick response. That helps a lot.

--Sid

On Thu, Apr 7, 2011 at 11:19 AM, Robert Muir  wrote:

> On Thu, Apr 7, 2011 at 2:13 PM, Siddharth Powar
>  wrote:
> > Hey guys,
> >
> > I am in the process of moving to solr3.1 from solr1.4. I am having this
> > issue where solr3.1 now complains about the synonyms.txt file. I get the
> > following error:
> > *org.apache.solr.common.SolrException: Error loading resource (wrong
> > encoding?): synonyms.txt*
> > *
> > *
> > This worked fine before in solr1.4. Not sure what the issue is...
>
> Hi, your synonyms were not working fine before in solr 1.4, they were
> just silently wrong. Its telling you your synonyms file is in the
> wrong encoding (by default solr expects UTF-8), because it contains
> illegal byte sequences.
>


Encoding issue on synonyms.txt

2011-04-07 Thread Siddharth Powar
Hey guys,

I am in the process of moving to solr3.1 from solr1.4. I am having this
issue where solr3.1 now complains about the synonyms.txt file. I get the
following error:
*org.apache.solr.common.SolrException: Error loading resource (wrong
encoding?): synonyms.txt*
*
*
This worked fine before in solr1.4. Not sure what the issue is...

Thanks in advance for your help guys.


--Sid


Re: Reading timestamp for DIH

2010-12-17 Thread Siddharth Powar
Cool.. Thanks Koji...

--Sid

On Sat, Dec 4, 2010 at 3:16 AM, Koji Sekiguchi  wrote:

> (10/11/24 6:05), Siddharth Powar wrote:
>
>> Hey,
>>
>> Is it possible to read the timestamp that the DataImportHandler uses for a
>> delta-import from a location other than "conf/dataimport.properties".
>>
>> Thanks,
>> Sid
>>
>
> No. There is an open issue for this problem:
>
> https://issues.apache.org/jira/browse/SOLR-1970
>
> Koji
> --
> http://www.rondhuit.com/en/
>


Reading timestamp for DIH

2010-11-23 Thread Siddharth Powar
Hey,

Is it possible to read the timestamp that the DataImportHandler uses for a
delta-import from a location other than "conf/dataimport.properties".

Thanks,
Sid


Re: Searches with a period (.) in the query

2010-09-23 Thread Siddharth Powar
Hey Ken,

The filedType definition that I am using is:


Thanks,
Sid

On Thu, Sep 23, 2010 at 5:29 AM, kenf_nc  wrote:

>
> Do you have any other Analyzers or Formatters involved? I use delimiters in
> certain string fields all the time. Usually a colon ":" or slash "/" but
> should be the same for a period. I've never seen this behavior. But if you
> have any kind of tokenizer or formatter involved beyond
> omitNorms="true" />
> then you may be introducing something extra to the party.
>
> What does your fieldType definition look like?
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Searches-with-a-period-in-the-query-tp1564780p1567666.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


Re: Searches with a period (.) in the query

2010-09-22 Thread Siddharth Powar
Hey Ken,

Thanks for the reply. Its not a case-sensitivity issue. I wonder if this is
a bug in the way the data is indexed in solr as the behavior is not constant
throughout searches of similar type when a period (.) is used. You think
there could be some other issue?

Thanks,
Sid

On Wed, Sep 22, 2010 at 6:18 PM, kenf_nc  wrote:

>
> Could it be a case-sensitivity issue? The StrField type is not analyzed,
> but
> indexed/stored verbatim. (from the schema comments).  If you are looking
> for
> ab.pqr but it is in fact ab.Pqr in the solr document, it wouldn't find it.
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Searches-with-a-period-in-the-query-tp1564780p1565057.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


Searches with a period (.) in the query

2010-09-22 Thread Siddharth Powar
Hi,

I am getting some weird output upon searching in solr. For certain searches
that have a period in the search term (e.g: q=ab.xyz) solr returns the
results perfectly, but for some other searches (e.g: q=ab.pqr) solr would
return 0 results even though it is present. On the other hand if the search
query is q=abpqr (without the period), solr returns the correct documents.

The field type belongs to the class "solr.StrField".

Please let me know if i can provide with more info.

Thanks,
Sid